yfiles/client/tiles/GroupNavigationMode
Class GroupNavigationMode

This class implements an input mode for navigating in a nested graph.

An instance of this input mode provides opening and closing of group nodes and switching the display of the underlying canvas to the inner graph of a group node or back to an outer graph. On a touch device, only the opening and closing of group nodes is supported.

 
All Parent Classes:
yfiles/client/tiles/InputMode
 
Field Summary
 null isEnterExitGesture           
 
Constructor Summary
GroupNavigationMode(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/HierarchyManager hierarchyManager)
           

This class implements an input mode for navigating in a nested graph.

 
Method Summary
  activate()           

activates this input mode.

  deactivate()           

deactivates this input mode.

 
Field Detail

isEnterExitGesture

null isEnterExitGesture
 
Constructor Detail

GroupNavigationMode

GroupNavigationMode(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/HierarchyManager hierarchyManager)

This class implements an input mode for navigating in a nested graph.

An instance of this input mode provides opening and closing of group nodes and switching the display of the underlying canvas to the inner graph of a group node or back to an outer graph. On a touch device, only the opening and closing of group nodes is supported.

Parameters:
canvas -

the canvas instance this mode works on

hierarchyManager -

hierarchy manager for the graph of the canvas

Method Detail

activate

 activate()

activates this input mode.

The following gestures trigger actions.

To customize the keys that trigger the enter/exit group actions, a function can be assigned to the isEnterExitGroup property. The function should accept an event, and return whether the provided event represents an enter/exit group gesture.


deactivate

 deactivate()

deactivates this input mode.


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