Overview
The mouse (pointer's) location is available relative to several
coordinate systems: x,y - relative to the origin of the
MouseEvent's node, sceneX,sceneY - relative to to the
origin of the Scene
that contains the node,
screenX,screenY - relative to origin of the screen that
contains the mouse pointer, dragX, dragY - if the
MouseEvent is part of a press-drag-release gesture, then relative
to the location of the press event, otherwise 0.
Profile: common conditional mouse
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | altDown | Boolean |
Whether or not the Alt modifier is down on this event. |
||||
public-read | button | MouseButton |
Which, if any, of the mouse buttons has changed state. |
||||
public-read | clickCount | Integer |
Number of mouse clicks associated with this event. |
||||
public-read | controlDown | Boolean |
Whether or not the Control modifier is down on this event. |
||||
public-read | dragAnchorX | Number |
x position of the event that initiated the most recent press event
if the |
||||
public-read | dragAnchorY | Number |
y position of the event that initiated the most recent press event
only if the |
||||
public-read | dragX | Number |
x offset of the event relative to the most recent press event
if the |
||||
public-read | dragY | Number |
y offset of the event relative to the most recent press event
only if the |
||||
public-read | metaDown | Boolean |
Whether or not the Meta modifier is down on this event. |
||||
public-read | middleButtonDown | Boolean |
|
||||
public-read | node | Node |
Source of the event. |
||||
public-read | popupTrigger | Boolean |
Whether or not this mouse event is the popup menu trigger event for the platform. Whether or not this mouse event is the popup menu trigger event for the platform. Note: Popup menus are triggered differently
on different systems. Therefore, Profile: common conditional mouse |
||||
public-read | primaryButtonDown | Boolean |
|
||||
public-read | sceneX | Number |
Horizontal x position of the event relative to the
origin of the |
||||
public-read | sceneY | Number |
Vertical y position of the event relative to the
origin of the |
||||
public-read | screenX | Number |
Absolute horizontal x position of the event. |
||||
public-read | screenY | Number |
Absolute vertical y position of the event. |
||||
public-read | secondaryButtonDown | Boolean |
|
||||
public-read | shiftDown | Boolean |
Whether or not the Shift modifier is down on this event. |
||||
public-read | wheelRotation | Number |
Number of clicks the mouse wheel was rotated. |
||||
public-read | x | Number |
Horizontal x position of the event relative to the origin of the MouseEvent's node. |
||||
public-read | y | Number |
Vertical y position of the event relative to the origin of the MouseEvent's node. |
Inherited Variables
Function Summary
- public copy(node: Node, evt: MouseEvent) : MouseEvent
-
Creates a copy of the given mouse event, substituting the given node for the one in the original event.
Creates a copy of the given mouse event, substituting the given node for the one in the original event. This function will also adjust the location properties (x, y, screenX, screenY, etc) such that the event is in values relative to the new node.
-
Parameters
- node
- evt
-
Returns
- MouseEvent
- public mouseEvent(node: Node, awtMouseEvent: java.awt.event.MouseEvent, dragAnchorXY: Point2D) : MouseEvent
- public toString() : java.lang.String