Class MouseEventDetails
java.lang.Object
io.jmix.mapsflowui.kit.component.event.dom.MouseEventDetails
Class contains mouse details when the user clicks in a map component.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Contains for mouse button that was pressed. -
Field Summary
Modifier and TypeFieldDescriptionprotected MouseEventDetails.MouseButton
protected int
protected int
-
Constructor Summary
ConstructorDescriptionMouseEventDetails
(MouseEventDetails.MouseButton button, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey) -
Method Summary
-
Field Details
-
button
-
pageX
protected int pageX -
pageY
protected int pageY
-
-
Constructor Details
-
MouseEventDetails
public MouseEventDetails(MouseEventDetails.MouseButton button, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey)
-
-
Method Details
-
getButton
- Returns:
- mouse button that was pressed
-
getPageX
public int getPageX()- Returns:
- the X coordinate of the mouse pointer relative to the whole document
-
getPageY
public int getPageY()- Returns:
- the Y coordinate of the mouse pointer relative to the whole document
-
isAltKey
public boolean isAltKey()- Returns:
true
if thealt
key was down when the mouse event was fired
-
isCtrlKey
public boolean isCtrlKey()- Returns:
true
if thecontrol
key was down when the mouse event was fired
-
isMetaKey
public boolean isMetaKey()- Returns:
true
if themeta
key was down when the mouse event was fired
-
isShiftKey
public boolean isShiftKey()- Returns:
true
if theshift
key was down when the mouse event was fired.
-