public interface IEdgeData
IEdgeData
is a multi-purpose edge descriptor for each edge, holding information about the type
of an edge, associated port constraints
,
port candidates
, edge groups as well as the current edge state.
It is used in all phases of the HierarchicLayoutCore
to store edge information.
Modifier and Type | Method and Description |
---|---|
Edge |
getAssociatedEdge()
|
Node |
getAssociatedNode()
|
EdgeLayoutDescriptor |
getEdgeLayoutDescriptor()
|
Object |
getGroup()
|
Object |
getSourceGroup()
|
Collection<Object> |
getSourcePortCandidates()
Gets the
collection of PortCandidate s for the source port of the Edge
associated with this IEdgeData instance. |
PortConstraint |
getSourcePortConstraint()
|
Object |
getSourcePortGroup()
|
Object |
getTargetGroup()
|
Collection<Object> |
getTargetPortCandidates()
Gets the
collection of PortCandidate s for the target port of the Edge
associated with this IEdgeData instance. |
PortConstraint |
getTargetPortConstraint()
|
Object |
getTargetPortGroup()
|
double |
getThickness()
|
EdgeDataType |
getType()
|
boolean |
isFallbackUpperSameLayerEdge()
|
boolean |
isReversed()
|
boolean |
isUpperSameLayerEdge()
|
void |
setFallbackUpperSameLayerEdge(boolean value)
|
Edge getAssociatedEdge()
Node getAssociatedNode()
EdgeLayoutDescriptor getEdgeLayoutDescriptor()
EdgeLayoutDescriptor
instance bound to the Edge
associated with this IEdgeData
instance.
If no EdgeLayoutDescriptor
is bound to the edge, null
should be returned.
EdgeLayoutDescriptor
instance or null
if no EdgeLayoutDescriptor
is registeredObject getSourceGroup()
Edge
associated with this IEdgeData
instance belongs (if any).
Information about edge grouping at the source node is obtained by a IDataProvider
registered with the graph with key PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
.
Collection<Object> getSourcePortCandidates()
collection
of PortCandidate
s for the source port of the Edge
associated with this IEdgeData
instance.
Source port candidates
are obtained by a IDataProvider
registered with the graph with key
PortCandidate.SOURCE_PORT_CANDIDATE_COLLECTION_DPKEY
.
collection
of PortCandidate
for the source portPortConstraint getSourcePortConstraint()
port constraints
for the source port of the Edge
associated with this IEdgeData
instance.
PortConstraint
s are obtained by a IDataProvider
registered with the graph
with key PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY
.
PortConstraint
instance for the source portObject getSourcePortGroup()
Edge
associated with this IEdgeData
instance belongs (if any).
Information about edge port grouping at the source node is obtained by a IDataProvider
registered with the graph with key PortConstraintKeys.SOURCE_PORT_GROUP_ID_DPKEY
.
Object getTargetGroup()
Edge
associated with this IEdgeData
instance belongs (if any).
Information about edge grouping at the target node is obtained by a IDataProvider
registered with the graph with key PortConstraintKeys.TARGET_GROUP_ID_DPKEY
.
Collection<Object> getTargetPortCandidates()
collection
of PortCandidate
s for the target port of the Edge
associated with this IEdgeData
instance.
Target port candidates
are obtained by a IDataProvider
registered with the graph with key
PortCandidate.TARGET_PORT_CANDIDATE_COLLECTION_DPKEY
.
collection
of PortCandidate
for the target portPortConstraint getTargetPortConstraint()
port constraints
for the target port of the Edge
associated with this IEdgeData
instance.
PortConstraint
s are obtained by a IDataProvider
registered with the graph
with key PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY
.
PortConstraint
instance for the target portObject getTargetPortGroup()
Edge
associated with this IEdgeData
instance belongs (if any).
Information about edge port grouping at the target node is obtained by a IDataProvider
registered with the graph with key PortConstraintKeys.TARGET_PORT_GROUP_ID_DPKEY
.
double getThickness()
Edge
associated with this IEdgeData
instance.
The thickness is considered when calculating minimum distances so that there are no overlaps between edges and other graph elements.
The thickness must have a non-negative value.
EdgeDataType getType()
Edge
boolean isFallbackUpperSameLayerEdge()
Edge
associated with this IEdgeData
instance should be an upper same-layer edge
(if it is a same-layer edge).
An upper same-layer edge is an edge connecting two nodes of the same layer with polyline segments (not directly, with a straight-line) and is routed above the layer.
If enabled the edge will be routed above the layer, otherwise below it.
true
if the same-layer edge should be routed above the layer, false
otherwisesetFallbackUpperSameLayerEdge(boolean)
boolean isReversed()
true
if the associated Edge
has been reversed, false
otherwiseboolean isUpperSameLayerEdge()
Edge
associated with this IEdgeData
instance is an upper same-layer edge.
An upper same-layer edge is an edge connecting two nodes of the same layer with polyline segments (not directly, with a straight-line) and is routed above the layer.
true
if the associated Edge
is an upper same-layer edge, false
otherwisevoid setFallbackUpperSameLayerEdge(boolean value)
Edge
associated with this IEdgeData
instance should be an upper same-layer edge
(if it is a same-layer edge).
An upper same-layer edge is an edge connecting two nodes of the same layer with polyline segments (not directly, with a straight-line) and is routed above the layer.
If enabled the edge will be routed above the layer, otherwise below it.
value
- true
if the same-layer edge should be routed above the layer, false
otherwiseisFallbackUpperSameLayerEdge()