yfiles/client/support/TouchPointHandler
Class TouchPointHandler

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 touchenter event is initiated.

  onTouchLeaveCore(Touch touch)           

Invoked when a touchleave event is initiated.

  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

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.

Parameters:
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

 onTouchCancelCore(Touch touch)

Callback that is invoked when a touch event was canceled.

Parameters:
touch -

The touch event


onTouchEndCore

 onTouchEndCore(Touch touch)

Invoked when a touch gesture ends.

Parameters:
touch -

The touch event


onTouchEnterCore

 onTouchEnterCore(Touch touch)

Invoked when a touchenter event is initiated.

Note that this event is currently not widely supported across devices and browsers.

Parameters:
touch -

The touch event


onTouchLeaveCore

 onTouchLeaveCore(Touch touch)

Invoked when a touchleave event is initiated.

Note that this event is currently not widely supported across devices and browsers.

Parameters:
touch -

The touch event


onTouchMoveCore

 onTouchMoveCore(Touch touch)

Callback that is invoked when a touch location was moved.

Parameters:
touch -

The touch event


onTouchStartCore

 onTouchStartCore(Touch touch)

Callback that is invoked when a touch gesture has started.

Parameters:
touch -

The touch event.


Copyright © 2006-2013 yWorks GmbH. All rights reserved.