|
|||||
SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT |
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.
Field Summary | |
---|---|
Number |
delay
If the |
Constructor Summary | |
---|---|
MoveViewportInputMode(yfiles/client/tiles/widget/GraphCanvas canvas)
An input mode that can be used to grab and drag the viewport of a |
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 |
---|
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(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.
canvas
- The canvas whose view point should be moved by this input mode.
Method Detail |
---|
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.