public class AbstractMouseHandlerFX extends java.lang.Object implements MouseHandlerFX
MouseHandlerFX
interface.
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 |
|---|
AbstractMouseHandlerFX(java.lang.String id,
boolean altKey,
boolean ctrlKey,
boolean metaKey,
boolean shiftKey)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getID()
Returns the ID for the handler.
|
void |
handleMouseClicked(ChartCanvas canvas,
javafx.scene.input.MouseEvent e)
Handles a mouse clicked event.
|
void |
handleMouseDragged(ChartCanvas canvas,
javafx.scene.input.MouseEvent e)
Handles a mouse dragged event.
|
void |
handleMouseMoved(ChartCanvas canvas,
javafx.scene.input.MouseEvent e)
Handles a mouse moved event.
|
void |
handleMousePressed(ChartCanvas canvas,
javafx.scene.input.MouseEvent e)
Handles a mouse pressed event.
|
void |
handleMouseReleased(ChartCanvas canvas,
javafx.scene.input.MouseEvent e)
Handles a mouse released event.
|
void |
handleScroll(ChartCanvas canvas,
javafx.scene.input.ScrollEvent e)
Handles a scroll event.
|
boolean |
hasMatchingModifiers(javafx.scene.input.MouseEvent e)
Returns
true if the specified mouse event has modifier
keys that match this handler. |
boolean |
isEnabled()
Returns the flag that controls whether or not the handler is enabled.
|
void |
setEnabled(boolean enabled)
Sets the flag that controls the enabled/disabled state of the handler.
|
public AbstractMouseHandlerFX(java.lang.String id, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey)
id - the handler id (null not permitted).altKey - require ALT key modifier?ctrlKey - require ALT key modifier?metaKey - require ALT key modifier?shiftKey - require ALT key modifier?public java.lang.String getID()
getID in interface MouseHandlerFXnull).public boolean isEnabled()
isEnabled in interface MouseHandlerFXpublic void setEnabled(boolean enabled)
enabled - the new flag value.public boolean hasMatchingModifiers(javafx.scene.input.MouseEvent e)
true if the specified mouse event has modifier
keys that match this handler.hasMatchingModifiers in interface MouseHandlerFXe - the mouse event (null not permitted).public void handleMouseMoved(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMouseMoved in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).public void handleMouseClicked(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMouseClicked in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).public void handleMousePressed(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMousePressed in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).public void handleMouseDragged(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMouseDragged in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).public void handleMouseReleased(ChartCanvas canvas, javafx.scene.input.MouseEvent e)
handleMouseReleased in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).public void handleScroll(ChartCanvas canvas, javafx.scene.input.ScrollEvent e)
handleScroll in interface MouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).