Menu

#80 Panning with right mouse button and zooming with wheel

open
nobody
None
5
2012-11-27
2005-05-31
No

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

Discussion

  • Onno vd Akker

    Onno vd Akker - 2005-05-31

    ScrollabaleChartPanel extends ChartPanel

     
  • Onno vd Akker

    Onno vd Akker - 2005-05-31

    Logged In: YES
    user_id=1288529

    see bug 1212039 for patch with multiple sub plots

     
  • Onno vd Akker

    Onno vd Akker - 2005-05-31

    Logged In: YES
    user_id=1288529

    and bug 1212071 for the patch

     
  • sergivs

    sergivs - 2005-12-16

    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

     
  • sergivs

    sergivs - 2005-12-16

    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.

     

Log in to post a comment.