|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--y.view.ViewMode
|
+--y.view.MoveSelectionMode
|
+--y.view.hierarchy.HierarchyMoveSelectionMode
A specialized MoveSelectionMode suitable for graphs that contain group nodes.
This specialized view mode automatically adds the contents of selected group nodes to the list of objects that need to be moved. Also, it automatically moves all children of a selected group node. This way the view mode naturally extends the selection in the presence of node groups.
Additionally, this view mode allows to add or remove nodes to and from a group. To add a selected node to a group, the node has to be dragged with the mouse to the target group node, then while pressing the shift key the left mouse button needs to be released. To remove a selected node from a group the shift key needs to be held down while pressing the left mouse button to initiate the move selection action.
| Field Summary | |
protected HierarchyManager |
_hierarchy
|
| Fields inherited from class y.view.ViewMode |
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view |
| Constructor Summary | |
HierarchyMoveSelectionMode()
|
|
HierarchyMoveSelectionMode(HierarchyManager hierarchy)
|
|
| Method Summary | |
protected BendList |
getBendsToBeMoved()
Returns the bends that should will be moved by this view mode. |
protected HierarchyManager |
getHierarchyManager()
|
protected NodeList |
getNodesToBeMoved()
Returns the nodes that should will be moved by this view mode. |
void |
mousePressedLeft(double x,
double y)
Initiates the movement of the selected graph elements. |
void |
mouseReleased(MouseEvent ev)
A mouse button get released |
void |
mouseReleasedLeft(double x,
double y)
Terminates the movements of the selected graph elements. |
void |
mouseShiftPressedLeft(double x,
double y)
Initiates the movement of the selected graph elements. |
void |
mouseShiftReleasedLeft(double x,
double y)
Terminates the movements of the selected graph elements. |
protected void |
selectionMovedAction(double dx,
double dy,
double x,
double y)
Performs an action after the selection was moved. |
| Methods inherited from class y.view.MoveSelectionMode |
mouseDraggedLeft, selectionOnMove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HierarchyManager _hierarchy
| Constructor Detail |
public HierarchyMoveSelectionMode(HierarchyManager hierarchy)
public HierarchyMoveSelectionMode()
| Method Detail |
protected NodeList getNodesToBeMoved()
MoveSelectionMode
getNodesToBeMoved in class MoveSelectionModeprotected BendList getBendsToBeMoved()
MoveSelectionMode
getBendsToBeMoved in class MoveSelectionMode
protected void selectionMovedAction(double dx,
double dy,
double x,
double y)
MoveSelectionMode
selectionMovedAction in class MoveSelectionModeprotected HierarchyManager getHierarchyManager()
public void mouseShiftPressedLeft(double x,
double y)
MoveSelectionMode
mouseShiftPressedLeft in class MoveSelectionModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.
public void mousePressedLeft(double x,
double y)
MoveSelectionMode
mousePressedLeft in class MoveSelectionModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.
public void mouseShiftReleasedLeft(double x,
double y)
MoveSelectionMode
mouseShiftReleasedLeft in class MoveSelectionModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.
public void mouseReleasedLeft(double x,
double y)
MoveSelectionMode
mouseReleasedLeft in class MoveSelectionModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.public void mouseReleased(MouseEvent ev)
ViewMode
mouseReleased in interface MouseListenermouseReleased in class ViewMode
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||