twaver.network.interaction
Class ZoomInteraction

java.lang.Object
  extended by twaver.network.interaction.Interaction
      extended by twaver.network.interaction.ZoomInteraction
All Implemented Interfaces:
IInteraction

public class ZoomInteraction
extends Interaction

缩放交互


Field Summary
 
Fields inherited from class twaver.network.interaction.Interaction
network
 
Constructor Summary
ZoomInteraction(Network network)
          构造函数,缩放交互
 
Method Summary
 boolean onScale(ScaleGestureDetector detector)
          缩放事件
 boolean onScaleBegin(ScaleGestureDetector detector)
          缩放事件开始
 
Methods inherited from class twaver.network.interaction.Interaction
destroy, onDoubleTap, onDown, onFling, onLongPress, onMove, onScaleEnd, onScroll, onSingleTapConfirmed, onSingleTapUp, onUp, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomInteraction

public ZoomInteraction(Network network)
构造函数,缩放交互

Parameters:
network - 拓扑图
Method Detail

onScaleBegin

public boolean onScaleBegin(ScaleGestureDetector detector)
Description copied from interface: IInteraction
缩放事件开始

Specified by:
onScaleBegin in interface IInteraction
Overrides:
onScaleBegin in class Interaction
Parameters:
detector - 缩放处理器
Returns:
是否处理

onScale

public boolean onScale(ScaleGestureDetector detector)
Description copied from interface: IInteraction
缩放事件

Specified by:
onScale in interface IInteraction
Overrides:
onScale in class Interaction
Parameters:
detector - 缩放处理器
Returns:
是否处理