|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewMode
y.view.EditMode
y.view.hierarchy.HierarchyEditMode
public class HierarchyEditMode
A specialized EditMode suitable for editing hierarchically organized graphs.
This mode uses specialized child modes to provide adequate editing capabilities for
grouped graphs.

| Field Summary |
|---|
| Fields inherited from class y.view.EditMode |
|---|
createEdgeMode, editNodeMode, hotSpotMode, mouseInputMode, moveLabelMode, movePortMode, moveSelectionMode, moveViewPortMode, ORTHOGONAL_ROUTING_DPKEY, popupMode, pressedNode, selectionBoxMode |
| 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 | |
|---|---|
HierarchyEditMode()
Creates a new instance of HierarchyEditMode |
|
| Method Summary | |
|---|---|
protected ViewMode |
createCreateEdgeMode()
Returns an instance of HierarchyCreateEdgeMode. |
protected ViewMode |
createHotSpotMode()
Returns an instance of HierarchyHotSpotMode. |
protected HitInfo |
createLabelHitInfo(double x,
double y)
Performs a hit test for a group node label at the specified location. |
protected ViewMode |
createMoveSelectionMode()
Returns an instance of HierarchyMoveSelectionMode. |
protected ViewMode |
createSelectionBoxMode()
Returns an instance of HierarchySelectionBoxMode. |
int |
getGroupBorderWidth()
returns the width the active group node border. |
protected boolean |
isCreateEdgeGesture(MouseEvent lastPress,
MouseEvent lastDrag)
Special handling for group nodes. |
boolean |
isCreateEdgeOnGroupNodeLabelEnabled()
Returns whether or not a bend will be created when the mouse is released on the first label of a group node. |
void |
setCreateEdgeOnGroupNodeLabelEnabled(boolean enabled)
Whether or not to connect an edge to a group node when the mouse is released on its first label. |
void |
setGroupBorderWidth(int groupBorderWidth)
Sets the width of the active group node border. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchyEditMode()
| Method Detail |
|---|
protected ViewMode createHotSpotMode()
HierarchyHotSpotMode.
createHotSpotMode in class EditModeprotected ViewMode createCreateEdgeMode()
HierarchyCreateEdgeMode.
createCreateEdgeMode in class EditModeprotected ViewMode createSelectionBoxMode()
HierarchySelectionBoxMode.
createSelectionBoxMode in class EditModeprotected ViewMode createMoveSelectionMode()
HierarchyMoveSelectionMode.
createMoveSelectionMode in class EditMode
protected boolean isCreateEdgeGesture(MouseEvent lastPress,
MouseEvent lastDrag)
getGroupBorderWidth(). Activation
of the label hit acceptance is controlled by isCreateEdgeOnGroupNodeLabelEnabled().
isCreateEdgeGesture in class EditModelastPress - the last press eventlastDrag - the last drag event
protected HitInfo createLabelHitInfo(double x,
double y)
public void setGroupBorderWidth(int groupBorderWidth)
10.
isCreateEdgeGesture(MouseEvent, MouseEvent)public int getGroupBorderWidth()
setGroupBorderWidth(int)public boolean isCreateEdgeOnGroupNodeLabelEnabled()
public void setCreateEdgeOnGroupNodeLabelEnabled(boolean enabled)
isCreateEdgeGesture(MouseEvent, MouseEvent)
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||