Search found 513 matches

by John Matthews
Wed Mar 13, 2013 1:50 pm
Forum: JFreeChart
Topic: Very basic question - What are the Generics for ....
Replies: 1
Views: 2855

Re: Very basic question - What are the Generics for ....

Generic parameters allow compile-time type checking. Primitive types, such as int and double , are not valid generic parameter types. Instead, use the corresponding wrappers types, such as Integer or Double . For more flexibility, code to the interface type, e.g. List<Integer> or List<Double> .
by John Matthews
Thu Mar 07, 2013 12:30 am
Forum: JFreeChart
Topic: Polar Chart : rotate axis line
Replies: 2
Views: 4899

Re: Polar Chart : rotate axis line

Cross-posted here.
by John Matthews
Thu Feb 14, 2013 7:30 pm
Forum: JFreeChart
Topic: Hello, peculiar behaviour with JTabbedPane
Replies: 2
Views: 3284

Re: Hello, peculiar behaviour with JTabbedPane

You might try preparing an sscce using synthetic data. The word "jumpy" suggests a failure to pack() the enclosing Window , which leaves the enclosed Container invalid. The word "sometimes" suggests a failure to construct the GUI on the event dispatch thread . Update: For reference, the JTabbedPane ...
by John Matthews
Thu Jan 24, 2013 2:30 pm
Forum: JFreeChart
Topic: Jfrree chart takes more memory to plot chart
Replies: 5
Views: 4654

Re: Jfrree chart takes more memory to plot chart

Yes,I tested BarChartDemo1, too. Results vary by platform, but I saw a decrease proportional to the size of the buffer.
by John Matthews
Wed Jan 23, 2013 1:29 pm
Forum: JFreeChart
Topic: Jfrree chart takes more memory to plot chart
Replies: 5
Views: 4654

Re: Jfrree chart takes more memory to plot chart

Profile , profile, profile. I used the alternate constructor shown below to explore. Telling ChartPanel not to useBuffer proved helpful. Normally, you can't force GC, but a profiler can use JVM TI to Force Garbage Collection as required. public BarChartDemo1(String title) { super(title); CategoryDa...
by John Matthews
Tue Jan 22, 2013 6:25 pm
Forum: JFreeChart
Topic: Jfrree chart takes more memory to plot chart
Replies: 5
Views: 4654

Re: Jfrree chart takes more memory to plot chart

I profiled org.jfree.chart.demo.BarChartDemo1, but I only saw 7.4 K bytes for classes belonging to org.jfree.
by John Matthews
Tue Jan 22, 2013 6:22 pm
Forum: JFreeChart
Topic: Pagination implementation for Listing views
Replies: 1
Views: 2267

Re: Pagination implementation for Listing views

One approach is cited here.
by John Matthews
Sat Jan 19, 2013 11:14 am
Forum: JFreeChart
Topic: lousy performance for huge dataset, relying on Jfreechart
Replies: 10
Views: 21368

Re: lousy performance for huge dataset, relying on Jfreechar

You can use a paging approach, illustrated here.
by John Matthews
Tue Jan 15, 2013 4:09 pm
Forum: JFreeChart
Topic: Jfree chart and OpenSDK Issue
Replies: 2
Views: 3587

Re: Jfree chart and OpenSDK Issue

Cross-posted here.
by John Matthews
Mon Jan 14, 2013 1:22 am
Forum: JFreeChart
Topic: Change Direction of Text in Legend
Replies: 1
Views: 2227

Re: Change Direction of Text in Legend

Warmachines wrote:Another thread mentioned rendering LegendItems with a GridLayout.
If you mean this approach, also consider, GridLayout(0, 1) or BoxLayout. Given a suitable cell renderer, JList or JTable are yet more flexible.
by John Matthews
Wed Jan 09, 2013 2:38 pm
Forum: JFreeChart
Topic: CombinedDomainXYPlot & TimeSeries & AutoRange
Replies: 2
Views: 3158

Re: CombinedDomainXYPlot & TimeSeries & AutoRange

You may need to add a starting data point to each series before stating up. For expedience, I just called the timer's action listener, but you'll want to do something more appropriate. dataGenerator = new DataGenerator(tic * 1000); dataGenerator.actionPerformed(null); A few additional notes: Build y...
by John Matthews
Mon Jan 07, 2013 10:22 pm
Forum: JFreeChart
Topic: Marking the existing graph with data items
Replies: 3
Views: 3182

Re: Marking the existing graph with data items

Sri wrote:without having y-axis data
Sorry, I haven't tried them all. Why not try a simple one like XYPointerAnnotation with an arbitrary y value for each x. As you mention shapes, two example using XYShapeAnnotation are cited here.
by John Matthews
Mon Jan 07, 2013 2:47 pm
Forum: JFreeChart
Topic: Marking the existing graph with data items
Replies: 3
Views: 3182

Re: Marking the existing graph with data items

You might look over the org.jfree.chart.annotations package.
by John Matthews
Sat Jan 05, 2013 2:29 am
Forum: JFreeChart
Topic: JFreeChart is stealing focus
Replies: 3
Views: 3790

Re: JFreeChart is stealing focus

It's not clear why you call centerFrameOnScreen() , setVisible() and pack() in a loop, but setVisible() is the likely culprit. None are necessary, as the view listens for changes to the model by default. Updating the model from a thread other than the event dispatch thread is also incorrect; instead...