public abstract class Touchscreen extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected AtomicLong |
idGenerator |
protected List<TouchHandle> |
touches |
| 构造器和说明 |
|---|
Touchscreen() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
removeHandle(TouchHandle handle) |
void |
tap(double x,
double y)
调度 touchstart 和 touchend 事件。
|
void |
touchEnd()
调度 touchend 事件。
|
void |
touchMove(double x,
double y)
调度 touchMove 事件。
|
abstract TouchHandle |
touchStart(double x,
double y,
com.fasterxml.jackson.databind.node.ObjectNode origin)
调度 touchstart 事件。
|
protected final List<TouchHandle> touches
protected final AtomicLong idGenerator
public void tap(double x,
double y)
x - tap的水平位置。y - tap的垂直位置。public abstract TouchHandle touchStart(double x, double y, com.fasterxml.jackson.databind.node.ObjectNode origin)
x - tap的水平位置。y - tap的垂直位置。origin - originpublic void touchMove(double x,
double y)
x - 移动的水平位置。y - 移动的垂直位置。public void touchEnd()
public void removeHandle(TouchHandle handle)
Copyright © 2020–2025. All rights reserved.