Example usage for Java javafx.scene.input MouseEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
EventType | ANY Common supertype for all mouse event types. |
EventType | MOUSE_PRESSED This event occurs when mouse button is pressed. |
EventType | MOUSE_RELEASED This event occurs when mouse button is released. |
EventType | MOUSE_CLICKED This event occurs when mouse button has been clicked (pressed and released on the same node). |
EventType | MOUSE_ENTERED This event occurs when mouse enters a node. |
EventType | MOUSE_EXITED This event occurs when mouse exits a node. |
EventType | MOUSE_MOVED This event occurs when mouse moves within a node and no buttons are pressed. |
EventType | MOUSE_DRAGGED This event occurs when mouse moves with a pressed button. |
void | consume() Marks this Event as consumed. |
MouseButton | getButton() Which, if any, of the mouse buttons is responsible for this event. |
int | getClickCount() Returns number of mouse clicks associated with this event. |
EventType extends MouseEvent> | getEventType() |
double | getSceneX() Returns horizontal position of the event relative to the origin of the Scene that contains the MouseEvent's source. |
double | getSceneY() Returns vertical position of the event relative to the origin of the Scene that contains the MouseEvent's source. |
double | getScreenX() Returns absolute horizontal position of the event. |
double | getScreenY() Returns absolute vertical position of the event. |
Object | getSource() The object on which the Event initially occurred. |
EventTarget | getTarget() Returns the event target of this event. |
double | getX() Horizontal position of the event relative to the origin of the MouseEvent's source. |
double | getY() Vertical position of the event relative to the origin of the MouseEvent's source. |
boolean | isAltDown() Whether or not the Alt modifier is down on this event. |
boolean | isControlDown() Whether or not the Control modifier is down on this event. |
boolean | isMetaDown() Whether or not the Meta modifier is down on this event. |
boolean | isMiddleButtonDown() Returns true if middle button (button 2) is currently pressed. |
boolean | isPopupTrigger() Returns true if this mouse event is the popup menu trigger event for the platform. |
boolean | isPrimaryButtonDown() Returns true if primary button (button 1, usually the left) is currently pressed. |
boolean | isSecondaryButtonDown() Returns true if secondary button (button 3, usually the right) is currently pressed. |
boolean | isShiftDown() Whether or not the Shift modifier is down on this event. |
boolean | isShortcutDown() Returns whether or not the host platform common shortcut modifier is down on this event. |
boolean | isStillSincePress() Indicates whether the mouse cursor stayed in the system-provided hysteresis area since last pressed event that occurred before this event. |