org.jfree.chart.fx.interaction
Class DispatchHandlerFX
- java.lang.Object
-
- org.jfree.chart.fx.interaction.AbstractMouseHandlerFX
-
- org.jfree.chart.fx.interaction.DispatchHandlerFX
-
- All Implemented Interfaces:
- MouseHandlerFX
public class DispatchHandlerFX extends AbstractMouseHandlerFX
Handles mouse move and click events on theChartCanvasby dispatchingChartMouseEventFXevents to listeners that are registered with theChartCanvas(listeners can also be registered with aChartViewercontrol).THE API FOR THIS CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES. This is so that we can incorporate feedback on the (new) JavaFX support in JFreeChart.
- Since:
- 1.0.18
-
-
Constructor Summary
Constructors Constructor and Description DispatchHandlerFX(java.lang.String id)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidhandleMouseClicked(ChartCanvas canvas, javafx.scene.input.MouseEvent e)Handles a mouse clicked event by setting the anchor point for the canvas and redrawing the chart (the anchor point is a reference point used by the chart to determine crosshair lines).voidhandleMouseMoved(ChartCanvas canvas, javafx.scene.input.MouseEvent e)Handles a mouse moved event.voidhandleMousePressed(ChartCanvas canvas, javafx.scene.input.MouseEvent e)Handles a mouse pressed event by recording the location of the mouse pointer (so that later we can check that the click isn't part of a drag).-
Methods inherited from class org.jfree.chart.fx.interaction.AbstractMouseHandlerFX
getID, handleMouseDragged, handleMouseReleased, handleScroll, hasMatchingModifiers, isEnabled, setEnabled
-
-
-
-
Constructor Detail
-
DispatchHandlerFX
public DispatchHandlerFX(java.lang.String id)
Creates a new instance.- Parameters:
id- the id (nullnot permitted).
-
-
Method Detail
-
handleMousePressed
public void handleMousePressed(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
Handles a mouse pressed event by recording the location of the mouse pointer (so that later we can check that the click isn't part of a drag).- Specified by:
handleMousePressedin interfaceMouseHandlerFX- Overrides:
handleMousePressedin classAbstractMouseHandlerFX- Parameters:
canvas- the chart canvas.e- the mouse event.
-
handleMouseMoved
public void handleMouseMoved(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
Description copied from class:AbstractMouseHandlerFXHandles a mouse moved event. This implementation does nothing, override the method if required.- Specified by:
handleMouseMovedin interfaceMouseHandlerFX- Overrides:
handleMouseMovedin classAbstractMouseHandlerFX- Parameters:
canvas- the canvas (nullnot permitted).e- the event (nullnot permitted).
-
handleMouseClicked
public void handleMouseClicked(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
Handles a mouse clicked event by setting the anchor point for the canvas and redrawing the chart (the anchor point is a reference point used by the chart to determine crosshair lines).- Specified by:
handleMouseClickedin interfaceMouseHandlerFX- Overrides:
handleMouseClickedin classAbstractMouseHandlerFX- Parameters:
canvas- the chart canvas (nullnot permitted).e- the mouse event (nullnot permitted).
-
-
DMelt 3.0 © DataMelt by jWork.ORG