public class TouchEvent extends InputEvent
TouchEvent
represents a single event from multi-touch input devicesModifier and Type | Class and Description |
---|---|
static class |
TouchEvent.Type |
consumed, time
Constructor and Description |
---|
TouchEvent() |
TouchEvent(TouchEvent.Type type,
float x,
float y,
float deltax,
float deltay) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharacters() |
float |
getDeltaScaleSpan() |
float |
getDeltaX() |
float |
getDeltaY() |
int |
getKeyCode() |
int |
getPointerId() |
float |
getPressure() |
float |
getScaleFactor() |
float |
getScaleSpan() |
TouchEvent.Type |
getType()
Returns the type of touch event.
|
float |
getX() |
float |
getY() |
boolean |
isScaleSpanInProgress() |
void |
set(TouchEvent.Type type) |
void |
set(TouchEvent.Type type,
float x,
float y,
float deltax,
float deltay) |
void |
setCharacters(java.lang.String characters) |
void |
setDeltaScaleSpan(float deltaScaleSpan) |
void |
setKeyCode(int keyCode) |
void |
setPointerId(int pointerId) |
void |
setPressure(float pressure) |
void |
setScaleFactor(float scaleFactor) |
void |
setScaleSpan(float scaleSpan) |
void |
setScaleSpanInProgress(boolean scaleSpanInProgress) |
java.lang.String |
toString() |
getTime, isConsumed, setConsumed, setTime
public TouchEvent()
public TouchEvent(TouchEvent.Type type, float x, float y, float deltax, float deltay)
public void set(TouchEvent.Type type)
public void set(TouchEvent.Type type, float x, float y, float deltax, float deltay)
public TouchEvent.Type getType()
public float getX()
public float getY()
public float getDeltaX()
public float getDeltaY()
public float getPressure()
public void setPressure(float pressure)
public int getPointerId()
public void setPointerId(int pointerId)
public int getKeyCode()
public void setKeyCode(int keyCode)
public java.lang.String getCharacters()
public void setCharacters(java.lang.String characters)
public float getScaleFactor()
public void setScaleFactor(float scaleFactor)
public float getScaleSpan()
public void setScaleSpan(float scaleSpan)
public float getDeltaScaleSpan()
public void setDeltaScaleSpan(float deltaScaleSpan)
public boolean isScaleSpanInProgress()
public void setScaleSpanInProgress(boolean scaleSpanInProgress)
public java.lang.String toString()
toString
in class java.lang.Object