public class AbstractMouseHandlerFX extends 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(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,
MouseEvent e)
Handles a mouse clicked event.
|
void |
handleMouseDragged(ChartCanvas canvas,
MouseEvent e)
Handles a mouse dragged event.
|
void |
handleMouseMoved(ChartCanvas canvas,
MouseEvent e)
Handles a mouse moved event.
|
void |
handleMousePressed(ChartCanvas canvas,
MouseEvent e)
Handles a mouse pressed event.
|
void |
handleMouseReleased(ChartCanvas canvas,
MouseEvent e)
Handles a mouse released event.
|
void |
handleScroll(ChartCanvas canvas,
ScrollEvent e)
Handles a scroll event.
|
boolean |
hasMatchingModifiers(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 MouseHandlerFX
null
).public boolean isEnabled()
isEnabled
in interface MouseHandlerFX
public void setEnabled(boolean enabled)
enabled
- the new flag value.public boolean hasMatchingModifiers(MouseEvent e)
true
if the specified mouse event has modifier
keys that match this handler.hasMatchingModifiers
in interface MouseHandlerFX
e
- the mouse event (null
not permitted).public void handleMouseMoved(ChartCanvas canvas, MouseEvent e)
handleMouseMoved
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).public void handleMouseClicked(ChartCanvas canvas, MouseEvent e)
handleMouseClicked
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).public void handleMousePressed(ChartCanvas canvas, MouseEvent e)
handleMousePressed
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).public void handleMouseDragged(ChartCanvas canvas, MouseEvent e)
handleMouseDragged
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).public void handleMouseReleased(ChartCanvas canvas, MouseEvent e)
handleMouseReleased
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).public void handleScroll(ChartCanvas canvas, ScrollEvent e)
handleScroll
in interface MouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics