|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openintents.hardware.SensorEvent
public class SensorEvent
Object used to report sensor events.
| Field Summary | |
|---|---|
static int |
ACTION_MOVE
Indicates scrolling behavior. |
static int |
ACTION_SHAKE
Indicates shaking. |
static int |
ACTION_VOID
No action. |
| Method Summary | |
|---|---|
int |
getAction()
Return the kind of action being performed |
long |
getEventTime()
Returns the time (in ms) when this specific event was generated. |
float |
getX()
Returns the X coordinate of this event. |
float |
getY()
Returns the Y coordinate of this event. |
void |
setAction(int action)
Sets this event's action. |
void |
setLocation(float x,
float y)
Set this event's location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTION_VOID
public static final int ACTION_MOVE
public static final int ACTION_SHAKE
| Method Detail |
|---|
public final int getAction()
public final long getEventTime()
public final float getX()
public final float getY()
public final void setAction(int action)
action -
public final void setLocation(float x,
float y)
x - y -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||