|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.moxieapps.gwt.highcharts.client.events.MouseEvent
public abstract class MouseEvent
The base class of all events that are triggered by the user's mouse, and includes methods for accessing the general state of the event, such as if the user was holding down the "Shift" or "Control" key, or the x/y coordinates of the click.
Constructor Summary | |
---|---|
protected |
MouseEvent(com.google.gwt.core.client.JavaScriptObject event)
We can only be created by instantiating one of our sub classes. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MouseEvent(com.google.gwt.core.client.JavaScriptObject event)
event
- The native javascript object containing the details of the original event that was fired.Method Detail |
---|
public int getClientX()
public int getClientY()
public int getNativeButton()
NativeEvent.BUTTON_LEFT
,
NativeEvent.BUTTON_RIGHT
,
NativeEvent.BUTTON_MIDDLE
public int getRelativeX(com.google.gwt.dom.client.Element target)
target
- the element whose coordinate system is to be used
public int getRelativeY(com.google.gwt.dom.client.Element target)
target
- the element whose coordinate system is to be used
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |