Skip to main content

MouseEnterEvent

Java API

An event that is triggered when the mouse cursor enters the boundaries of an element. It occurs when the user moves the mouse pointer over the specified element, indicating that the mouse has entered its area.

Event Payload

MethodDescription
getMouseButton()Returns whether or not a mouse button was pressed while the event happened.
getScreenX()Returns the absolute abscissa screen coordinate where this event happened.
getScreenY()Returns the absolute ordinate screen coordinate where this event happened.
getX()The X coordinate of the point at which this event occurred, relative to the parent .
getY()The Y coordinate of the point at which this event occurred, relative to the parent .
isAltDown()A boolean value indicating whether the alt key was pressed at the time this event was generated
isCmdDown()A boolean value indicating whether the cmd key was pressed at the time this event was generated
isControlDown()A boolean value indicating whether the ctrl key was pressed at the time this event was generated
isShiftDown()A boolean value indicating whether the shift key was pressed at the time this event was generated

See Also