BaseGesture

public abstract class BaseGesture
已知的直接子类

手势的基类。

手势表示检测到的一系列表示特定运动(即拖动、双指张合)的轻触事件。

手势由 BaseGestureRecognizer's 创建和更新。

嵌套类

接口 BaseGesture.OnGestureEventListener&T; 扩展了 BaseGesture<T>&gt; 将由 BaseGesture 调用的回调的接口定义。 

字段

受保护的最终 GesturePointersUtility gesturePointersUtility
受保护的节点 目标节点

公共构造函数

BaseGesture(GesturePointersUtility gesturePointersUtility)

公共方法

节点
布尔值
布尔值
浮点数
inchesToPixels(浮点数)
布尔值
无效
onTouch(HitTestResulthitTestResult, MotionEvent motionEvent)
浮点数
pixelsToInches(浮点像素)
无效
布尔值

受保护的方法

抽象布尔值
canStart(HitTestResulthitTestResult、MotionEvent motionEvent)
无效
无效
抽象 T
抽象 无效
抽象 无效
抽象 无效
onStart(HitTestResulthitTestResult, MotionEvent motionEvent)
抽象布尔值
updateGestureHitTestResult命中 TestResult、MotionEvent motionEvent)

继承的方法

字段

受保护的最终 GesturePointersUtilitygesturePointersUtility

受保护的 Node targetNode

公共构造函数

public BaseGesture (GesturePointersUtility gesturePointersUtility)

参数
gesturePointersUtility

公共方法

public Node getTargetNode ()

public boolean FinishFinished ()

public boolean hasStarted ()

公开浮点数 inchesToPixels (浮点数)

参数
英寸

public boolean justStarted ()

public void onTouch (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

公开 浮点 pixelsToInches (浮点像素)

参数
像素

public void setGestureEventListener (OnGestureEventListener<T>监听器)

参数
监听器

public boolean wasCancelled ()

受保护的方法

受保护的抽象布尔值 canStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

Protect void 取消 ()

Protect void complete ()

受保护的抽象 T getSelf ()

Protected abstract void onCancel ()

Protected abstract void onFinish ()

Protected abstract void onStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

受保护的抽象布尔值 updateGesture (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]