|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.network.interaction.TouchEvent
public class TouchEvent
拓扑图触摸事件
Field Summary | |
---|---|
protected Element |
element
触摸点网元 |
protected MotionEvent |
motionEvent
原始触摸事件 |
protected Network |
network
拓扑图 |
Constructor Summary | |
---|---|
TouchEvent(MotionEvent motionEvent,
Network network)
构造函数 |
Method Summary | |
---|---|
Element |
getElement()
获取网元 |
MotionEvent |
getMotionEvent()
原始触摸事件 |
Element |
getSelectedElement()
触摸点选中网元 |
float |
getX()
触摸点屏幕坐标 |
float |
getY()
触摸点屏幕坐标 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MotionEvent motionEvent
protected Element element
protected Network network
Constructor Detail |
---|
public TouchEvent(MotionEvent motionEvent, Network network)
motionEvent
- 原始触摸事件network
- 拓扑图Method Detail |
---|
public Element getElement()
public Element getSelectedElement()
public MotionEvent getMotionEvent()
public float getX()
public float getY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |