yfiles/client/tiles/MoveSelectionMode
Class MoveSelectionMode

This is an input mode for moving selected nodes.

 
All Parent Classes:
yfiles/client/tiles/InputMode
 
Constructor Summary
MoveSelectionMode(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/GraphSelection selection, yfiles/client/tiles/HierarchyManager hierarchyManager, Boolean routeEdges)
           

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.

 Boolean isRouteEdges()           

returns whether edges are routed after moving nodes.

  setRouteEdges(Boolean doRouteEdges)           

sets whether edges are routed after moving nodes.

 
Constructor Detail

MoveSelectionMode

MoveSelectionMode(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/GraphSelection selection, yfiles/client/tiles/HierarchyManager hierarchyManager, Boolean routeEdges)

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

routeEdges -

Whether the edges should be re-reouted when the selection is moved

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.


isRouteEdges

Boolean isRouteEdges()

returns whether edges are routed after moving nodes.


setRouteEdges

 setRouteEdges(Boolean doRouteEdges)

sets whether edges are routed after moving nodes.

Parameters:
doRouteEdges -

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