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(String id)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
handleMouseClicked(ChartCanvas canvas,
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,
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, setEnabled
public AnchorHandlerFX(String id)
id
- the id (null
not permitted).public void handleMousePressed(ChartCanvas canvas, MouseEvent e)
handleMousePressed
in interface MouseHandlerFX
handleMousePressed
in class AbstractMouseHandlerFX
canvas
- the chart canvas.e
- the mouse event.public void handleMouseClicked(ChartCanvas canvas, MouseEvent e)
handleMouseClicked
in interface MouseHandlerFX
handleMouseClicked
in class AbstractMouseHandlerFX
canvas
- the chart canvas (null
not permitted).e
- the mouse event (null
not permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics