|
|||||
SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT |
This is an input mode for selecting nodes and edges by means of a Rubberband.
Constructor Summary | |
---|---|
RectangularSelectionMode(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/GraphSelection selection, yfiles/client/tiles/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(yfiles/client/tiles/widget/GraphCanvas canvas, yfiles/client/tiles/GraphSelection selection, yfiles/client/tiles/HierarchyManager hierarchyManager)
This is an input mode for selecting nodes and edges by means of a Rubberband.
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()
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()
deactivates this instance. The Rubberband is hidden.