yfiles.client.tiles.RectangularSelectionMode
Class RectangularSelectionMode

This is an input mode for selecting nodes and edges by means of a Rubberband.

 
All Parent Classes:
InputMode
 
Constructor Summary
RectangularSelectionMode(/*GraphCanvas*/ canvas, /*GraphSelection*/ selection, /*HierarchyManager?*/ hierarchyManager)
           This is an input mode for selecting nodes and edges by means of a Rubberband.
 
Method Summary
  activate()
          activates this instance.
  deactivate()
          deactivates this instance. The Rubberband is hidden.
 
Constructor Detail

RectangularSelectionMode

RectangularSelectionMode(/*GraphCanvas*/ canvas, /*GraphSelection*/ selection, /*HierarchyManager?*/ hierarchyManager)
This is an input mode for selecting nodes and edges by means of a Rubberband.
Parameters:
canvas - the canvas for which to handle user input
selection - the selection to use
hierarchyManager - optional hierarchy manager for the graph of the canvas
Method Detail

activate

activate()
activates this instance. The Rubberband for selecting nodes and edge is shown, but it is only one pixel wide and high. It is assumed that the left mouse button is pressed. While the user moves the mouse the Rubberband is resized accordingly. If the user releases the left mouse button, this input mode tries to add all nodes and edges overlapping the area of the Rubberband to the selection. Note that it depends on the configuration of the selection whether nodes and/or edges can actually be added to the selection.

deactivate

deactivate()
deactivates this instance. The Rubberband is hidden.

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