public class AbstractMouseHandlerFX extends Object implements MouseHandlerFX
MouseHandlerFX
interface.| Constructor and Description |
|---|
AbstractMouseHandlerFX(String id,
boolean altKey,
boolean ctrlKey,
boolean metaKey,
boolean shiftKey)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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(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 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).Copyright © 2017 JFree.org. All rights reserved.