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:
InputMode
 
Constructor Summary
GroupNavigationMode(/*GraphCanvas*/ canvas, /*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.
 Boolean isEnterExitGesture(/*MouseEvent*/ evt)
          (read-write) A function that returns whether the passed event represents an enter/exit group gesture
 
Constructor Detail

GroupNavigationMode

GroupNavigationMode(/*GraphCanvas*/ canvas, /*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.

isEnterExitGesture

Boolean isEnterExitGesture(/*MouseEvent*/ evt)
(read-write) A function that returns whether the passed event represents an enter/exit group gesture
Parameters:
evt - The mouse event.

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