public abstract class BaseGesture
已知的直接子类 |
手势的基类。
手势表示检测到的一系列表示特定运动(即拖动、双指张合)的轻触事件。
手势由 BaseGestureRecognizer's 创建和更新。
嵌套类
接口 | BaseGesture.OnGestureEventListener&T; 扩展了 BaseGesture<T>>; | 将由 BaseGesture 调用的回调的接口定义。 |
字段
受保护的最终 GesturePointersUtility | gesturePointersUtility | |
受保护的节点 | 目标节点 |
公共构造函数
BaseGesture(GesturePointersUtility gesturePointersUtility)
|
公共方法
节点 | |
布尔值 | |
布尔值 | |
浮点数 |
inchesToPixels(浮点数)
|
布尔值 | |
无效 | |
浮点数 |
pixelsToInches(浮点像素)
|
无效 | |
布尔值 |
已废弃()
|
受保护的方法
抽象布尔值 | |
无效 | |
无效 |
complete()
|
抽象 T |
getSelf()
|
抽象 无效 |
onCancel()
|
抽象 无效 |
onFinish()
|
抽象 无效 | |
抽象布尔值 |
继承的方法
字段
公共构造函数
公共方法
public boolean FinishFinished ()
public boolean hasStarted ()
公开浮点数 inchesToPixels (浮点数)
参数
英寸 |
---|
public boolean justStarted ()
public void onTouch (HitTestResulthitTestResult, MotionEvent motionEvent)
参数
命中结果 | |
---|---|
motionEvent [动作事件] |
公开 浮点 pixelsToInches (浮点像素)
参数
像素 |
---|
public boolean wasCancelled ()
受保护的方法
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 [动作事件] |