public class AnchorHandlerFX extends AbstractMouseHandlerFX
ChartCanvas by 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 |
|---|
AnchorHandlerFX(java.lang.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(java.lang.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).