yfiles/client/tiles/MoveViewportInputMode
Class MoveViewportInputMode

An input mode that can be used to grab and drag the viewport of a GraphCanvas using touch or mouse gestures.

The minimum time span between consecutive view point changes in Bitmap Mode can be set using the delay property.

 
All Parent Classes:
yfiles/client/tiles/InputMode
 
Field Summary
 Number delay           

If the GraphCanvas is in Bitmap Mode, this property determines the minimum time span between consecutive view point changes caused by touch- or mouse move events (in milliseconds). While this influences the perceived smoothness of the move viewport gesture, it reduces the amount of server requests for updated image tiles. The default value is 30.

 
Constructor Summary
MoveViewportInputMode(yfiles/client/tiles/widget/GraphCanvas canvas)
           

An input mode that can be used to grab and drag the viewport of a GraphCanvas using touch or mouse gestures.

 
Method Summary
  activate()           

Calls the super implementation.

  deactivate()           

Cancels dragging and call the super implementation.

 Boolean isDragging()           

Returns whether mouse/touch move events will currently trigger view point movements.

 
Field Detail

delay

Number delay

If the GraphCanvas is in Bitmap Mode, this property determines the minimum time span between consecutive view point changes caused by touch- or mouse move events (in milliseconds). While this influences the perceived smoothness of the move viewport gesture, it reduces the amount of server requests for updated image tiles. The default value is 30.

 
Constructor Detail

MoveViewportInputMode

MoveViewportInputMode(yfiles/client/tiles/widget/GraphCanvas canvas)

An input mode that can be used to grab and drag the viewport of a GraphCanvas using touch or mouse gestures.

The minimum time span between consecutive view point changes in Bitmap Mode can be set using the delay property.

Parameters:
canvas -

The canvas whose view point should be moved by this input mode.

Method Detail

activate

 activate()

Calls the super implementation.


deactivate

 deactivate()

Cancels dragging and call the super implementation.


isDragging

Boolean isDragging()

Returns whether mouse/touch move events will currently trigger view point movements.


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