|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.network.interaction.Interaction
twaver.network.interaction.SingleTouchDragInteraction
twaver.network.interaction.CreateLinkInteraction
public class CreateLinkInteraction
创建连线交互
Field Summary |
---|
Fields inherited from class twaver.network.interaction.SingleTouchDragInteraction |
---|
stopWhenMultiTouch |
Fields inherited from class twaver.network.interaction.Interaction |
---|
network |
Constructor Summary | |
---|---|
CreateLinkInteraction(Network network)
构造函数,创建连线交互 |
Method Summary | |
---|---|
void |
destroy()
结束交互 |
protected boolean |
doDragging(TouchEvent e1,
TouchEvent e2,
float distanceX,
float distanceY)
拖拽操作中 |
protected void |
endDrag(TouchEvent event)
结束拖拽 |
boolean |
onDoubleTap(TouchEvent e)
双击 |
void |
reset()
重置拖拽状态 |
protected boolean |
startDrag(TouchEvent e1,
TouchEvent event,
float distanceX,
float distanceY)
开始拖拽 |
Methods inherited from class twaver.network.interaction.SingleTouchDragInteraction |
---|
onDown, onScroll, onUp, stop |
Methods inherited from class twaver.network.interaction.Interaction |
---|
onFling, onLongPress, onMove, onScale, onScaleBegin, onScaleEnd, onSingleTapConfirmed, onSingleTapUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateLinkInteraction(Network network)
network
- 拓扑图Method Detail |
---|
public void destroy()
IInteraction
destroy
in interface IInteraction
destroy
in class SingleTouchDragInteraction
public void reset()
SingleTouchDragInteraction
reset
in class SingleTouchDragInteraction
protected boolean startDrag(TouchEvent e1, TouchEvent event, float distanceX, float distanceY)
SingleTouchDragInteraction
startDrag
in class SingleTouchDragInteraction
e1
- 开始拖拽事件event
- 当前触摸事件distanceX
- 拖拽距离distanceY
- 拖拽距离
protected boolean doDragging(TouchEvent e1, TouchEvent e2, float distanceX, float distanceY)
SingleTouchDragInteraction
doDragging
in class SingleTouchDragInteraction
e1
- 开始拖拽事件e2
- 当前触摸事件distanceX
- 拖拽距离distanceY
- 拖拽距离
protected void endDrag(TouchEvent event)
SingleTouchDragInteraction
endDrag
in class SingleTouchDragInteraction
event
- 当前触摸事件public boolean onDoubleTap(TouchEvent e)
IInteraction
onDoubleTap
in interface IInteraction
onDoubleTap
in class Interaction
e
- 触摸事件
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |