public class AnchorHandlerFX extends AbstractMouseHandlerFX
ChartCanvasby updating the anchor and redrawing the chart.
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.
|Constructor and Description|
Creates a new instance.
|Modifier and Type||Method and Description|
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).
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).
getID, handleMouseDragged, handleMouseMoved, handleMouseReleased, handleScroll, hasMatchingModifiers, isEnabled, setEnabled
public AnchorHandlerFX(java.lang.String id)
id- the id (
public void handleMousePressed(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
public void handleMouseClicked(ChartCanvas canvas, javafx.scene.input.MouseEvent e)