Search found 5 matches
- Fri May 24, 2019 11:37 pm
- Forum: JFreeChart
- Topic: Copy to Clipboard IOException (ARGB channel no longer supported for JPEGs)
- Replies: 1
- Views: 10818
Copy to Clipboard IOException (ARGB channel no longer supported for JPEGs)
I'm in the process of migrating my applications to OpenJDK 11, I've discovered that copying a ChartPanel image to the WIndows clipboard now gives an IOException: java.io.IOException: Registered service providers failed to encode BufferedImage@228e6026: type = 2 DirectColorModel: rmask=ff0000 gmask=f...
- Mon Apr 25, 2016 10:01 pm
- Forum: JFreeChart
- Topic: Clone exception when copying ChartPanel to clipboard
- Replies: 8
- Views: 11223
Re: Clone exception when copying ChartPanel to clipboard
David, While you're in there fixing that, I experienced the same issue when trying to clone the maps with ItemLabelPosition, which is Serializable but not Cloneable. You might check for any others. Thanks. // 'postiveItemLabelAnchor' : immutable, no need to clone reference if (this.positiveItemLabel...
- Wed Apr 20, 2016 10:37 pm
- Forum: JFreeChart
- Topic: Clone exception when copying ChartPanel to clipboard
- Replies: 8
- Views: 11223
Re: Clone exception when copying ChartPanel to clipboard
Tried my CloneableFont and subclassing the renderer approach for giggles. It worked for the fonts, but now I'm running into the same issue for ItemLabelPosition objects. I have a feeling there will be more, so I'm going to ditch 1.0.19 and go back to before the Maps replaced the ObjectLists.
- Wed Apr 20, 2016 10:16 pm
- Forum: JFreeChart
- Topic: Clone exception when copying ChartPanel to clipboard
- Replies: 8
- Views: 11223
Re: Clone exception when copying ChartPanel to clipboard
Do you happen to know offhand with what version that started? My solution is either to go back to 1.0.14 (or later but before the change), or I've been playing around with making a CloneableFont class and subclassing the XYLineAndShapeRenderer to override the setXXX(Font) methods to use the Cloneabl...
- Wed Apr 20, 2016 8:51 am
- Forum: JFreeChart
- Topic: Clone exception when copying ChartPanel to clipboard
- Replies: 8
- Views: 11223
Clone exception when copying ChartPanel to clipboard
I am in the process of upgrading from v. 1.0.14 to 1.0.19 and am getting a CloneNotSupportedException when I try to copy a ChartPanel to the system clipboard in Windows via ChartPanel.doCopy(). java.lang.RuntimeException: java.lang.CloneNotSupportedException: Failed to clone. at org.jfree.chart.util...