|
|||||
SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT |
This is an input mode for moving selected nodes.
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(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.
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()
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()
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.
doRouteEdges
-