|
|||||
| SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT | ||||
Used to handle touch events.
The 'GraphCanvas' creates TouchPointHandler instances to handle individual touch gestures
(see GraphCanvas._getOrCreateTouchPointHandler()) - i.e., the touchstart, touchmove and
touchend events belonging to the same touch gesture are handled by a single TouchPointHandler instance.
| Constructor Summary | |
|---|---|
TouchPointHandler(yfiles/client/tiles/widget/GraphCanvas canvas, Number identifier)
Used to handle touch events. |
|
| Method Summary | |
|---|---|
|
onTouchCancelCore(Touch touch)
Callback that is invoked when a touch event was canceled. |
|
onTouchEndCore(Touch touch)
Invoked when a touch gesture ends. |
|
onTouchEnterCore(Touch touch)
Invoked when a |
|
onTouchLeaveCore(Touch touch)
Invoked when a |
|
onTouchMoveCore(Touch touch)
Callback that is invoked when a touch location was moved. |
|
onTouchStartCore(Touch touch)
Callback that is invoked when a touch gesture has started. |
| Constructor Detail |
|---|
TouchPointHandler(yfiles/client/tiles/widget/GraphCanvas canvas, Number identifier)
Used to handle touch events.
The 'GraphCanvas' creates TouchPointHandler instances to handle individual touch gestures
(see GraphCanvas._getOrCreateTouchPointHandler()) - i.e., the touchstart, touchmove and
touchend events belonging to the same touch gesture are handled by a single TouchPointHandler instance.
canvas - The GraphCanvas instance where touch events will be delegated to
identifier - The identifier that identifies a single touch gesture across multiple touch events.
| Method Detail |
|---|
onTouchCancelCore(Touch touch)
Callback that is invoked when a touch event was canceled.
touch - The touch event
onTouchEndCore(Touch touch)
Invoked when a touch gesture ends.
touch - The touch event
onTouchEnterCore(Touch touch)
Invoked when a touchenter event is initiated.
Note that this event is currently not widely supported across devices and browsers.
touch - The touch event
onTouchLeaveCore(Touch touch)
Invoked when a touchleave event is initiated.
Note that this event is currently not widely supported across devices and browsers.
touch - The touch event
onTouchMoveCore(Touch touch)
Callback that is invoked when a touch location was moved.
touch - The touch event
onTouchStartCore(Touch touch)
Callback that is invoked when a touch gesture has started.
touch - The touch event.