public abstract class MouseEvent extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
MouseEvent(com.google.gwt.core.client.JavaScriptObject event)
We can only be created by instantiating one of our sub classes.
|
| 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.
|
com.google.gwt.core.client.JavaScriptObject |
getNativeEvent()
Returns a pointer to the native Highchart's instance data object that this GWT
instance is wrapping.
|
int |
getRelativeX(com.google.gwt.dom.client.Element target)
Gets the mouse x-position relative to a given element.
|
int |
getRelativeY(com.google.gwt.dom.client.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.
|
boolean |
isAltKeyDown()
Is
alt key down. |
boolean |
isControlKeyDown()
Is
control key down. |
boolean |
isMetaKeyDown()
Is
meta key down. |
boolean |
isShiftKeyDown()
Is
shift key down. |
protected MouseEvent(com.google.gwt.core.client.JavaScriptObject event)
event - The native javascript object containing the details of the original event that was fired.public int getClientX()
public int getClientY()
public int getNativeButton()
NativeEvent.BUTTON_LEFT,
NativeEvent.BUTTON_RIGHT,
NativeEvent.BUTTON_MIDDLEpublic int getRelativeX(com.google.gwt.dom.client.Element target)
target - the element whose coordinate system is to be usedpublic int getRelativeY(com.google.gwt.dom.client.Element target)
target - the element whose coordinate system is to be usedpublic int getScreenX()
public int getScreenY()
public boolean isAltKeyDown()
alt key down.public boolean isControlKeyDown()
control key down.public boolean isMetaKeyDown()
meta key down.public boolean isShiftKeyDown()
shift key down.public com.google.gwt.core.client.JavaScriptObject getNativeEvent()
Copyright © 2015. All Rights Reserved.