Search found 487 matches

by John Matthews
Sat Feb 09, 2019 10:16 am
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 3521

Re: setContentPane miss

You can test your existing version like this:

Code: Select all

$ cd /jfreechart/lib
$ java -cp jfreechart-1.0.19.jar:jcommon-1.0.23.jar org.jfree.chart.demo.BarChartDemo1
The current release is cited here.
by John Matthews
Fri Feb 08, 2019 5:20 pm
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 3521

Re: setContentPane miss

You appear to be using an earlier version from a time when org.jfree.ui.ApplicationFrame was in a separate library. Either switch to the new version or add the required JAR to your class path, as shown here.
by John Matthews
Fri Feb 08, 2019 2:22 pm
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 3521

Re: setContentPane miss

Yes, I am sure; setContentPane() is a method of the JFreeChart class org.jfree.chart.ui.ApplicationFrame . Note that ApplicationFrame is a JFrame , from which it inherits setContentPane() . The JFreeChart class org.jfree.chart.JFreeChart is not a Swing component, and it has no such method.
by John Matthews
Fri Feb 08, 2019 3:40 am
Forum: JFreeChart
Topic: setContentPane miss
Replies: 11
Views: 3521

Re: setContentPane miss

The same fragment works in the demos, either old or new.
by John Matthews
Tue Jan 22, 2019 7:23 pm
Forum: JFreeChart
Topic: Memory Leak issue
Replies: 3
Views: 2076

Re: Memory Leak issue

Your fragment is incorrectly synchronized: it updates a GUI component from a thread other than the event dispatch thread ; the approach shown here may be appropriate. In addition, it is unclear why the TableCellRenderer is re-creating the entire chart with each invocation. Each chart should be creat...
by John Matthews
Sat Jan 19, 2019 1:29 pm
Forum: JFreeChart
Topic: Memory Leak issue
Replies: 3
Views: 2076

Re: Memory Leak issue

Several strategies are examined here.
by John Matthews
Sat Jan 19, 2019 1:22 pm
Forum: JFreeChart
Topic: hi guys, can you help me ?
Replies: 1
Views: 1249

Re: hi guys, can you help me ?

Apply a suitable CategoryItemLabelGenerator to your plot's renderer.
by John Matthews
Sun Jan 13, 2019 12:32 pm
Forum: JFreeChart
Topic: unfamiliar jar files
Replies: 1
Views: 1353

Re: unfamiliar jar files

This is an exact duplicate of this question.
by John Matthews
Fri Jan 11, 2019 2:38 am
Forum: JFreeChart
Topic: Coordinates for XYShapeAnnotation?
Replies: 3
Views: 1944

Re: Coordinates for XYShapeAnnotation?

The shape's coordinates are data coordinates, not screen coordinates. A typical concrete implementation of java.awt.Shape contains nested classes with constructors that accept float or double arguments, e.g. Ellipse2D.Double in the first example cited.
by John Matthews
Thu Jan 10, 2019 8:26 pm
Forum: JFreeChart
Topic: Coordinates for XYShapeAnnotation?
Replies: 3
Views: 1944

Re: Coordinates for XYShapeAnnotation?

As shown here , XYShapeAnnotation coordinates should be specified relative to the data . As shown here , date values represent the number of milliseconds from the Java epoch . As shown here , use TimeSeries::getDataItem to get a particular TimeSeriesDataItem , and use TimeSeriesDataItem::getPeriod t...
by John Matthews
Thu Dec 20, 2018 7:24 pm
Forum: JFreeChart
Topic: StackedAreaRenderer modeling issue
Replies: 3
Views: 2047

Re: StackedAreaRenderer modeling issue

Math.nextUp(0) is a smaller value (1.4E-45) that appears to sustain higher zooming.
by John Matthews
Wed Dec 19, 2018 6:55 pm
Forum: JFreeChart
Topic: Impossible to change order of legend items???
Replies: 10
Views: 6712

Re: Impossible to change order of legend items???

I've only seen it in LegendTitleTest, but I suppose it might be handy in a vertical legend.
by John Matthews
Tue Dec 18, 2018 12:25 pm
Forum: JFreeChart
Topic: [XYPlot][ChartEditor] How to customize ChartEditor for a double range axis
Replies: 2
Views: 1813

Re: [XYPlot][ChartEditor] How to customize ChartEditor for a double range axis

While the relevant classes aren't public, they do have package-private access in org.jfree.chart.editor . You'll have to clone the repository, but you should be able to modify DefaultPlotEditor::createPlotTabs to (conditionally) include as many additional instances of DefaultAxisEditor as needed.
by John Matthews
Tue Dec 11, 2018 12:57 pm
Forum: JFreeChart
Topic: Impossible to change order of legend items???
Replies: 10
Views: 6712

Re: Impossible to change order of legend items???

Right. Addition order is meant to accommodate varying layouts; see fetchLegendItems() for details. For alphanumeric sorting, you might be able to override the method with your own implementation that adds the items in lexicographic order.
by John Matthews
Wed Dec 05, 2018 6:37 pm
Forum: JFreeChart
Topic: org.apache.batik
Replies: 1
Views: 1558

Re: org.apache.batik

You may be looking for JFreeSVG, which "has no dependencies other than the Java runtime (1.6 or later)."