yfiles.client.tiles.MoveSelectionMode
Class MoveSelectionMode

This is an input mode for moving selected nodes.

 
All Parent Classes:
InputMode
 
Constructor Summary
MoveSelectionMode(/*GraphCanvas*/ canvas, /*GraphSelection*/ selection, /*HierarchyManager?*/ hierarchyManager)
           This is an input mode for moving selected nodes.
 
Method Summary
  activate()
          activates this instance.
  deactivate()
          deactivates this instance. If necessary ghost objects are hidden.
 
Constructor Detail

MoveSelectionMode

MoveSelectionMode(/*GraphCanvas*/ canvas, /*GraphSelection*/ selection, /*HierarchyManager?*/ hierarchyManager)
This is an input mode for moving selected nodes.
Parameters:
canvas - the canvas for which to handle user input
selection - the selection to use (note that this is a reference and thus a "live" object)
hierarchyManager - optional hierarchy manager for the graph of the canvas
Method Detail

activate

activate()
activates this instance. The selection instance passed to this input mode at creation time is checked for the current set of selected nodes. If there are no selected nodes, then this input mode deactivates itself. Otherwise the selected nodes are indicated by draggable ghost objects. It is assumed that the left mouse button is pressed. While the user moves the mouse the ghosts are moved accordingly indicating the potential new positions of the selected nodes. If the user releases the left mouse button, the ghosts become invisible, and the real selected nodes get their positions.

deactivate

deactivate()
deactivates this instance. If necessary ghost objects are hidden.

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