|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EdgeData
Multi-purpose edge descriptor for each edge in the graph during the layout.
Used by HierarchicLayouter
during all stages to keep the state of
the edges.
Field Summary | |
---|---|
static byte |
TYPE_DIRECT_SAME_LAYER_EDGE
Describes a same layer edge that connects two neighbouring nodes directly. |
static byte |
TYPE_GROUP_BORDER_EDGE
Describes an edge that connects group border nodes in adjacent layers |
static byte |
TYPE_GROUP_NODE_INTERCONNECTOR
Describes an edge that connects two group nodes. |
static byte |
TYPE_NON_DIRECT_SAME_LAYER_EDGE
Describes a same layer edge that connects two neighbouring nodes directly. |
static byte |
TYPE_NORMAL
Describes a normal edge. |
static byte |
TYPE_SOURCE_GROUP_NODE_CONNECTOR
Describes an edge that connects to a source group node. |
static byte |
TYPE_TARGET_GROUP_NODE_CONNECTOR
Describes an edge that connects to a target group node. |
Method Summary | |
---|---|
Edge |
getAssociatedEdge()
Returns a possibly associated edge |
Node |
getAssociatedNode()
Returns a possibly associated node |
EdgeLayoutDescriptor |
getEdgeLayoutDescriptor()
Returns the EdgeLayoutDescriptor instance that was initially bound to this edge or null . |
Object |
getGroup()
Returns the group that is represented by this edge |
Collection |
getSourceCandidates()
Returns the Collection of PortCandidate s for the
source port as obtained from the DataProvider bound to the graph via
the PortCandidate.SOURCE_PCLIST_DPKEY data provider key
bound to the original edge. |
Object |
getSourceGroup()
Returns the source group id object if any |
PortConstraint |
getSPC()
Returns the current source port constraint |
Collection |
getTargetCandidates()
Returns the Collection of PortCandidate s for the
source port as obtained from the DataProvider bound to the graph via
the PortCandidate.TARGET_PCLIST_DPKEY data provider key
bound to the original edge. |
Object |
getTargetGroup()
Returns the target group id object if any |
PortConstraint |
getTPC()
Returns the current target port constraint |
byte |
getType()
Returns the type constant of the edge. |
boolean |
isFallbackUpperSameLayerEdge()
Returns whether this edge should be an upper same layer edge if it is a same layer edge and it can be freely determined whether it should be routed above or below the layer. |
boolean |
isReversed()
Returns whether the edge has been reversed. |
boolean |
isUpperSameLayerEdge()
Returns whether the edge is an upper same layer edge (in case it is a same layer edge). |
void |
setFallbackUpperSameLayerEdge(boolean fallback)
Sets whether this edge should be an upper same layer edge if it is a same layer edge and it can be freely determined whether it should be routed above or below the layer. |
Field Detail |
---|
static final byte TYPE_NORMAL
static final byte TYPE_SOURCE_GROUP_NODE_CONNECTOR
static final byte TYPE_TARGET_GROUP_NODE_CONNECTOR
static final byte TYPE_GROUP_NODE_INTERCONNECTOR
static final byte TYPE_DIRECT_SAME_LAYER_EDGE
static final byte TYPE_NON_DIRECT_SAME_LAYER_EDGE
static final byte TYPE_GROUP_BORDER_EDGE
Method Detail |
---|
byte getType()
Node getAssociatedNode()
Edge getAssociatedEdge()
PortConstraint getSPC()
Collection getSourceCandidates()
PortCandidate
s for the
source port as obtained from the DataProvider bound to the graph via
the PortCandidate.SOURCE_PCLIST_DPKEY
data provider key
bound to the original edge.
PortConstraint getTPC()
Collection getTargetCandidates()
PortCandidate
s for the
source port as obtained from the DataProvider bound to the graph via
the PortCandidate.TARGET_PCLIST_DPKEY
data provider key
bound to the original edge.
Object getSourceGroup()
Object getTargetGroup()
Object getGroup()
boolean isReversed()
boolean isUpperSameLayerEdge()
EdgeLayoutDescriptor getEdgeLayoutDescriptor()
null
.
void setFallbackUpperSameLayerEdge(boolean fallback)
fallback
- whether to route the same layer edge above the layerboolean isFallbackUpperSameLayerEdge()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |