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
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 |
Profile: common |
||||
public-init | node | Node |
The Node on which this event has occurred. |
||||
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 |
||||
public-read | primaryButtonDown | Boolean |
Profile: common |
||||
public-read | sceneX | Number |
Horizontal x position of the event relative to the
origin of the Horizontal x position of the event relative to the
origin of the Profile: common |
||||
public-read | sceneY | Number |
Vertical y position of the event relative to the
origin of the Vertical y position of the event relative to the
origin of the Profile: common |
||||
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 |
Profile: common |
||||
public-read | shiftDown | Boolean |
Whether or not the Shift modifier is down on this event. |
||||
public-read | source | Node |
Visually top-most Visually top-most
In case the |
||||
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
Script Function Summary
Function Summary
- public toString() : java.lang.String