org.arakhne.afc.ui.android.event
public class PointerEventAndroid extends EventObject implements PointerEvent
PointerEvent.ToolTypesourceMINIMAL_TOOL_SIZE| Constructor and Description |
|---|
PointerEventAndroid(Object source,
float x,
float y,
android.view.MotionEvent me) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume() |
int |
getButton() |
int |
getClickCount() |
int |
getDeviceId() |
float |
getOrientation() |
int |
getPointerCount() |
Shape2f |
getToolArea(int pointerIndex) |
PointerEvent.ToolType |
getToolType(int pointerIndex) |
float |
getX() |
float |
getXPrecision() |
float |
getY() |
float |
getYPrecision() |
boolean |
intersects(Shape2f s) |
boolean |
isAltDown() |
boolean |
isAltGraphDown() |
boolean |
isConsumed() |
boolean |
isContextualActionTriggered() |
boolean |
isControlDown() |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
boolean |
isToolAreaSupported() |
void |
setWhen(long when)
Change the timestamp of the event.
|
void |
setXY(float x,
float y)
Set the position of the event.
|
String |
toString() |
void |
unconsume()
Mark this event as not consumed.
|
long |
when() |
getSourcepublic PointerEventAndroid(Object source, float x, float y, android.view.MotionEvent me)
source - x - y - me - public int getDeviceId()
getDeviceId in interface InputEventpublic long when()
when in interface PointerEventpublic void setWhen(long when)
when - is the new timestamp.public boolean isConsumed()
isConsumed in interface InputEventpublic void consume()
consume in interface InputEventpublic void unconsume()
public boolean isShiftDown()
isShiftDown in interface InputEventpublic boolean isControlDown()
isControlDown in interface InputEventpublic boolean isMetaDown()
isMetaDown in interface InputEventpublic boolean isAltDown()
isAltDown in interface InputEventpublic boolean isAltGraphDown()
isAltGraphDown in interface InputEventpublic boolean isContextualActionTriggered()
isContextualActionTriggered in interface InputEventpublic float getX()
getX in interface PointerEventpublic float getY()
getY in interface PointerEventpublic int getButton()
getButton in interface PointerEventpublic int getClickCount()
getClickCount in interface PointerEventpublic float getOrientation()
getOrientation in interface PointerEventpublic void setXY(float x,
float y)
x - y - public String toString()
toString in class EventObjectpublic float getXPrecision()
getXPrecision in interface PointerEventpublic float getYPrecision()
getYPrecision in interface PointerEventpublic int getPointerCount()
getPointerCount in interface PointerEventpublic Shape2f getToolArea(int pointerIndex)
getToolArea in interface PointerEventpublic PointerEvent.ToolType getToolType(int pointerIndex)
getToolType in interface PointerEventpublic boolean isToolAreaSupported()
isToolAreaSupported in interface PointerEventpublic boolean intersects(Shape2f s)
intersects in interface PointerEventCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor