-
-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.jfree.chart.ChartUtilities
renamed to org.jfree.chart.ChartUtils
without deprecated paper-trail
#66
Comments
Please correct me if I am wrong but I believe the same happened with The change you mention can be found in this commit: 0763be8ec6b44c7fd782fd497aadcd455f0491f0 The change I mention can be found in this one: 22701c9ec4cd5bd88f8a7f17ae11c18099dd1ec7 |
Also many getBase/setBase methods were renamed to getDefault/setDefault (e.g., XYLineAndShapeRenderer.setBaseLinesVisible() -> XYLineAndShapeRenderer.setDefaultLinesVisible(). I had to correct about 200 compilation errors in my project after upgrading JFreeChart from 1.0.19 to 1.5.0. That's life, I guess. But wasn't the https://github.com/jfree/jfreechart-fse project started for that purpose (updating the API)? |
Please list all the changes you spot, I'll add migration notes to the README. And I'll get the latest API docs uploaded and update the website. |
This is what noted when ported my application from jfreechart 1.10.19:
And
disapperead? These changes impact my exisitng functionality. |
|
|
But most important: The 1.5.0 charts looks as good as the 1.0.19 charts -> everything is working fine after the manual code migration :-) Thank you @jfree for this library! |
@Petikoch - Did you use any of 3D Bar Charts, Custom Tooltips, Context Menus? It seems they went AWOL? |
@krheinwald I don’t know, I’m using only 2D stuff |
Thanks! Any experience with the other sstuff -Tooltips, Context Menus? |
On 16 Nov 2017, at 13:00, krheinwald ***@***.***> wrote:
This is what noted when ported my application from jfreechart 1.10.19:
org.jfree.ui became org.jfree.chart.ui
(Stacked)BarRenderer3D
Axis3D
The “faux” 3D plot code is removed, better options are provided by Orson Charts.
setToolTipGenerator()
Should be still there…getDefaultToolTipGenerator()?
org.jfree.ui.about
disapperead? These changes impact my exisitng functionality.
This stuff wasn’t really essential, but please copy the classes from JCommon if you need them.
I added some notes to the README for the 3D classes.
|
I successfully migrated to JFreeChart 1.5, only lots of (painful but) trivial class name changes / fix imports. One question: Will see if there are new legend properties... |
DatasetUtilities moved to DatasetUtils |
ShapeUtilities renamed to ShapeUtils isPointInRect moved from AbstractXYItemRenderer to ShapeUtils |
I had used custom calculateDomainMarkerTextAnchorPoint() in CombinedDomainXYPlot. Method RectangleAnchor.coordinates() disappeared. |
I see that change here in the v1.5.3 branch. The changes may guide your revised approach. |
When migrating from JFreeChart
And rendererBlue.setDefaultStroke(new BasicStroke(3.0f)); became renderer.setDefaultStroke(new BasicStroke(3.0f));
((AbstractRenderer) renderer).setAutoPopulateSeriesStroke(false); (See jfree.org/forum for the last change justification) |
See also Migration. |
Right clicking a chart and selecting "save as ... png" I got this error msg : "java.lang.NoClassDefFoundError: org/jfree/chart/ChartUtilities". (Jfreechart vers. 1.5.4, maven dependency) |
I can't reproduce this using |
Probably this issue comes from this MAVEN dependency I used: org.jfree jfreechart 1.5.4In fact, replacing this dependency with your jfreechart-1.5.4.jar file directly in my java build path all runs OK. Note: I compared with Windows FC command your jfreechart-1.5.4.jar file with my maven downloaded file and they seem identical, so I don't understand why the second solution works fine Thank you for your support |
Sorry, this is MAVEN dependency link https://mvnrepository.com/artifact/org.jfree/jfreechart |
Yes, the files have identical checksums. Did any older version(s) turn up on the classpath? You might search for errant JARs in the directories found in the system property |
Found, it's my fault. My Java application is designed in the SWT framework, so I thought I should use both MAVEN dependencies for jfreechart-1.5.4.jar and jfreechart-swt-1.0.jar. It was a big mistake, only the latter is necessary!! |
more of a comment; tho also the javadocs don't mention this move (in fact Google has yet to hear of org.jfree.chart.ChartUtils; it was only by cracking open the 1.5.0 jar that we were able to find where ChartUtilities went).
The text was updated successfully, but these errors were encountered: