public class AnchorHandlerFX extends AbstractMouseHandlerFX
ChartCanvas by updating the anchor and
redrawing the chart.| Constructor and Description |
|---|
AnchorHandlerFX(String id)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
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).
|
getID, handleMouseDragged, handleMouseMoved, handleMouseReleased, handleScroll, hasMatchingModifiers, isEnabled, setEnabledpublic AnchorHandlerFX(String id)
id - the id (null not permitted).public void handleMousePressed(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMousePressed in interface MouseHandlerFXhandleMousePressed in class AbstractMouseHandlerFXcanvas - the chart canvas.e - the mouse event.public void handleMouseClicked(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMouseClicked in interface MouseHandlerFXhandleMouseClicked in class AbstractMouseHandlerFXcanvas - the chart canvas (null not permitted).e - the mouse event (null not permitted).Copyright © 2017 JFree.org. All rights reserved.