Menu

#309 Individual nan and zoom for value axes

open
nobody
None
5
2014-07-29
2014-05-18
Piet
No

This patch adds the following features:
- Individual axes can be panned and zoomed by dragging the mouse along an axis or my using the mouse wheel over.
- Axes can be prevented from being panned and zoomed if the mouse is dragged/the mouse wheel used on the data area of an XYPlot.

1 Attachments

Discussion

  • Piet

    Piet - 2014-05-18

    Demo program

     
  • Piet

    Piet - 2014-05-21

    Second try. The patch now allows to zoom along a single ValueAxis by dragging the mouse inside the axis area. CategoryPlot now also checks the globalPannable and globalZoomable flags.

     
  • Piet

    Piet - 2014-06-25

    Final version.
    Combined plots are now supported as well.

     
  • Boente

    Boente - 2014-07-21

    Fixes:
    1. Patch can be applied directly to latest JFreeChart (3255)
    2. See http://www.jfree.org/forum/viewtopic.php?f=3&t=116907&start=15#p177843
    The problem that axis does not become zoomed when you perform a negative zoom on the axis has been fixed.
    3. A NPE has been fixed on Combined..Plots when the zoom action started on the gap between plots.

     
  • Boente

    Boente - 2014-07-21
    • Removed the isGlobalZoomable and isGlobalPannable flags from ValueAxis. The usage is quite special and the initial implementation allows always zooming and panning on the axis itself.
    • Fixed several bugs according to CombinedXXPlots.
     
  • Boente

    Boente - 2014-07-29
    • Simplified detection in ChartPanel if an axis is horizontal or vertical

    It is highly recommended to commit https://sourceforge.net/p/jfreechart/patches/312/ also.

     

Log in to post a comment.