Class ZoomHandlerFX

java.lang.Object
org.jfree.chart.fx.interaction.AbstractMouseHandlerFX
org.jfree.chart.fx.interaction.ZoomHandlerFX
All Implemented Interfaces:
MouseHandlerFX

public class ZoomHandlerFX
extends AbstractMouseHandlerFX
Handles drag zooming of charts on a ChartCanvas. This handler should be configured with the required modifier keys and installed as a live handler (not an auxiliary handler). This handler only works for a ChartCanvas that is embedded in a ChartViewer, since it relies on the ChartViewer for drawing the zoom rectangle.
  • Constructor Details

    • ZoomHandlerFX

      public ZoomHandlerFX​(String id, ChartViewer parent)
      Creates a new instance with no modifier keys required.
      Parameters:
      id - the handler ID (null not permitted).
      parent - the chart viewer.
    • ZoomHandlerFX

      public ZoomHandlerFX​(String id, ChartViewer parent, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey)
      Creates a new instance that will be activated using the specified combination of modifier keys.
      Parameters:
      id - the handler ID (null not permitted).
      parent - the chart viewer.
      altKey - require ALT key?
      ctrlKey - require CTRL key?
      metaKey - require META key?
      shiftKey - require SHIFT key?
  • Method Details