H - handler typepublic abstract class MouseEvent<H extends EventHandler> extends HumanInputEvent<H>
DomEvent.Type<H extends EventHandler>| Constructor and Description | 
|---|
| MouseEvent() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getClientX()Gets the mouse x-position within the browser window's client area. | 
| int | getClientY()Gets the mouse y-position within the browser window's client area. | 
| int | getNativeButton()Gets the button value. | 
| int | getRelativeX(Element target)Gets the mouse x-position relative to a given element. | 
| int | getRelativeY(Element target)Gets the mouse y-position relative to a given element. | 
| int | getScreenX()Gets the mouse x-position on the user's display. | 
| int | getScreenY()Gets the mouse y-position on the user's display. | 
| int | getX()Gets the mouse x-position relative to the event's current target element. | 
| int | getY()Gets the mouse y-position relative to the event's current target element. | 
isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDownfireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagationassertLive, dispatch, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic int getClientX()
public int getClientY()
public int getNativeButton()
NativeEvent.BUTTON_LEFT,
 NativeEvent.BUTTON_RIGHT,
 NativeEvent.BUTTON_MIDDLE
 Note: this is unreliable for events not caused by the depression or release of a mouse button.
public int getRelativeX(Element target)
target - the element whose coordinate system is to be usedpublic int getRelativeY(Element target)
target - the element whose coordinate system is to be usedpublic int getScreenX()
public int getScreenY()
public int getX()
public int getY()