You know that getPreferredSize method exists for ChartPanel.I want a similar method for XYPlot.Because I have a background image, I will scale image for each plot size change in ChartPanel.XYPLot width is not important for me.I want to scale height of background. So I need to have size of XYPlot.
Changes can be Windows resize changes, also you know that XYPlot size is affected from domainAxis items, Legend items.
P.S: I know that I can read plot info in ChartEvent getScreenDataArea method.I want to have coordinates without trigger mouse event.
Without a mouse event, getScreenDataArea() method does not return values.I can not understand why it does not return.I must able toi
You can say this post is cross-posted.But I can not find any answer to my problem for a while.So I am bored .
JFreechart XYPlot DataArea
-
- Posts: 4
- Joined: Thu Dec 15, 2011 10:31 am
- antibot: No, of course not.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: JFreechart XYPlot DataArea
Cross-posted here.