Search found 2 matches

by mechko
Thu Jun 19, 2008 10:24 am
Forum: JFreeChart
Topic: getChartRenderingInformation() getScreenDataArea() both null
Replies: 5
Views: 9224

Re: getChartRenderingInformation() getScreenDataArea() both

Try to paint your ChartPanel before you retrieve the information. Thanks. I tried to call ChartPanel.repaint() with no success as well. What I just tested was using a ChartComposite instead of the SWT_AWT Method: final ChartComposite frame = new ChartComposite(parent, SWT.NONE, chart, true); frame....
by mechko
Wed Jun 18, 2008 4:01 pm
Forum: JFreeChart
Topic: getChartRenderingInformation() getScreenDataArea() both null
Replies: 5
Views: 9224

getChartRenderingInformation() getScreenDataArea() both null

Hej, I'm trying to convert Java2D-Coordinates from a ChartMouseEvent to the coordinates of my XYPlot. I know that I have to use java2DToValue(). But the required Rectangel2D returned by ChartPanel.getScreenDataArea() returns always only zero-values. JFreeChart chart = e.createChart(); ChartPanel cp ...