|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewMode
y.view.CreateEdgeMode
y.view.hierarchy.HierarchyCreateEdgeMode
public class HierarchyCreateEdgeMode
A specialized CreateEdgeMode suitable for graphs that contain groups nodes.

| Field Summary |
|---|
| 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 | |
|---|---|
HierarchyCreateEdgeMode()
|
|
| Method Summary | |
|---|---|
protected boolean |
acceptBend(Node start,
Node hitNode,
double x,
double y)
Apart from the default behavior, also accept a bend if its coordinate lies within the inner region of a group node. |
protected HitInfo |
createLabelHitInfo(double x,
double y)
Performs a hit test for a group node label at the specified location. |
int |
getGroupBorderWidth()
returns the width the active group node border. |
boolean |
isConnectOnGroupNodeLabelEnabled()
Returns whether or not a bend will be created when the mouse is released on the first label of a group node. |
void |
setConnectOnGroupNodeLabelEnabled(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 HierarchyCreateEdgeMode()
| Method Detail |
|---|
protected boolean acceptBend(Node start,
Node hitNode,
double x,
double y)
acceptBend in class CreateEdgeModestart - the node from where edge creation startedhitNode - the node that was hit at the given locationx - the x-coordinate of the current locationy - the y-coordinate of the current locationgetGroupBorderWidth(),
isConnectOnGroupNodeLabelEnabled()public void setGroupBorderWidth(int groupBorderWidth)
10.
acceptBend(Node, Node, double, double)public int getGroupBorderWidth()
setGroupBorderWidth(int)public boolean isConnectOnGroupNodeLabelEnabled()
public void setConnectOnGroupNodeLabelEnabled(boolean enabled)
acceptBend(Node, Node, double, double)
protected HitInfo createLabelHitInfo(double x,
double y)
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||