|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewMode
y.view.MoveSelectionMode
y.view.hierarchy.HierarchyMoveSelectionMode
public class HierarchyMoveSelectionMode
A specialized MoveSelectionMode suitable for graphs that contain group nodes.
| Field Summary | |
|---|---|
protected HierarchyManager |
_hierarchy
|
static byte |
FIXED_AUTOBOUNDS_INSETS
Group bounds policy specifier. |
static byte |
FIXED_MINIMUM_GROUP_BOUNDS
Group bounds policy specifier. |
| Fields inherited from class y.view.ViewMode |
|---|
ACTIVE_PROPERTY, ACTIVE_VIEW_PROPERTY, CHILD_MODE_PROPERTY, EDITING_PROPERTY, GRAB_FOCUS_ENABLED_PROPERTY, lastClickEvent, lastDragEvent, lastMoveEvent, lastPressEvent, lastReleaseEvent, MODIFIER_MASK_PROPERTY, NAME_PROPERTY, originalX, originalY, PARENT_MODE_PROPERTY, view |
| Constructor Summary | |
|---|---|
HierarchyMoveSelectionMode()
|
|
HierarchyMoveSelectionMode(HierarchyManager hierarchy)
|
|
| Method Summary | |
|---|---|
protected HitInfo |
createDropTargetHitInfo(double x,
double y)
Performs a hit test for a target group node at the specified drop target location. |
protected BendList |
getBendsToBeMoved()
Returns the bends that should will be moved by this view mode. |
byte |
getGroupBoundsPolicy()
Returns the group bounds policy used when moving the child nodes of a group. |
protected HierarchyManager |
getHierarchyManager()
Returns the HierarchyManager associated with the graph displayed in the underlying Graph2DView. |
protected NodeList |
getNodesToBeMoved()
Returns the nodes that should will be moved by this view mode. |
boolean |
isGroupReassignmentEnabled()
Returns whether or not reassignment of nodes to other groups is enabled. |
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. |
protected void |
selectionOnMove(double dx,
double dy,
double x,
double y)
Adjusts the group node sizes according to the set group bounds policy. |
void |
setGroupBoundsPolicy(byte groupBoundsPolicy)
Sets the group bounds policy used when moving the child nodes of a group. |
void |
setGroupReassignmentEnabled(boolean enabled)
Sets whether or not a reassignment of nodes to other groups can be triggered by a mouse/keyboard gesture. |
| Methods inherited from class y.view.MoveSelectionMode |
|---|
activate, cancelEditing, isOrthogonalRouting, mouseDraggedLeft, selectionMoveStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HierarchyManager _hierarchy
public static final byte FIXED_AUTOBOUNDS_INSETS
AutoBoundsFeature, the group node's
autoBoundsInsets will stay fixed. It's overall bounds can grow or shrink.
public static final byte FIXED_MINIMUM_GROUP_BOUNDS
AutoBoundsFeature, the group node's
bounds can grow but not shrink. Before a group node starts to grow
its autoBoundsInset will be reduced, first.
| Constructor Detail |
|---|
public HierarchyMoveSelectionMode(HierarchyManager hierarchy)
public HierarchyMoveSelectionMode()
| Method Detail |
|---|
protected HitInfo createDropTargetHitInfo(double x,
double y)
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 MoveSelectionMode
protected void selectionOnMove(double dx,
double dy,
double x,
double y)
selectionOnMove 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 ViewModepublic byte getGroupBoundsPolicy()
FIXED_AUTOBOUNDS_INSETS and
FIXED_MINIMUM_GROUP_BOUNDS.public void setGroupBoundsPolicy(byte groupBoundsPolicy)
FIXED_AUTOBOUNDS_INSETS is set.
groupBoundsPolicy - one of FIXED_AUTOBOUNDS_INSETS and
FIXED_MINIMUM_GROUP_BOUNDS.public boolean isGroupReassignmentEnabled()
setGroupReassignmentEnabled(boolean)public void setGroupReassignmentEnabled(boolean enabled)
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||