ScrollabaleChartPanel extends ChartPanel with two features
The uses can zoom into a point using the mouse scroll wheel
and the user can pan the chart by dragging with right mouse
button pressed
1. The original extended your FixedChartPanel, which is
probably no longer relevant in jfreechart version 1.0.0. I
changed that.
The method gerScreenArea was apparently renamed to
getScaledArea on one of the recent versions, so I made the
appropriate change in this class.
2. The mouseClicked and mouseReleased methods blocked the
same methods in superclass for the right mouse button, which
prevented the popup menu from showing up. I added the logic
to fix that problem.
Both panning and zooming pretty slow for large datasets,
even when zoomed way in (not many data points are
displayed). Not immediately clear why. I have more that
enough RAM.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ScrollabaleChartPanel extends ChartPanel
Logged In: YES
user_id=1288529
see bug 1212039 for patch with multiple sub plots
Logged In: YES
user_id=1288529
and bug 1212071 for the patch
Logged In: YES
user_id=390604
Thanks a lot, very useful patch!
I had to change the code a little bit:
1. The original extended your FixedChartPanel, which is
probably no longer relevant in jfreechart version 1.0.0. I
changed that.
The method gerScreenArea was apparently renamed to
getScaledArea on one of the recent versions, so I made the
appropriate change in this class.
2. The mouseClicked and mouseReleased methods blocked the
same methods in superclass for the right mouse button, which
prevented the popup menu from showing up. I added the logic
to fix that problem.
Now it seems to work fine.
See the patch here:
https://sourceforge.net/tracker/index.php?func=detail&aid=1380913&group_id=15494&atid=315494
Logged In: YES
user_id=390604
Both panning and zooming pretty slow for large datasets,
even when zoomed way in (not many data points are
displayed). Not immediately clear why. I have more that
enough RAM.