public class PolylineEdgeRouterData extends LayoutData
EdgeRouter.| Constructor and Description |
|---|
PolylineEdgeRouterData() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter. |
AbortHandler |
getAbortHandler()
Gets the AbortHandler used during the layout.
|
DpKeyItemCollection<IEdge> |
getAffectedEdges()
Gets the collection of affected edges.
|
DpKeyItemCollection<INode> |
getAffectedNodes()
Gets the collection of affected nodes.
|
ItemMapping<IEdge,EdgeLayoutDescriptor> |
getEdgeLayoutDescriptors()
Gets the mapping of edges to their
EdgeLayoutDescriptor. |
ItemCollection<ILabel> |
getIgnoredLabels()
Gets the collection of labels of nodes or fixed edges that are ignored by the router.
|
ItemMapping<ILabel,Double> |
getLabelCrossingPenaltyFactors()
Gets a mapping from labels to a crossing penalty factor.
|
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo. |
ItemMapping<INode,PortCandidateSet> |
getNodePortCandidateSets()
Gets a mapping from nodes to their
PortCandidateSet. |
PartitionGridData |
getPartitionGridData()
Gets the partition grid layout data.
|
ItemMapping<IEdge,Object> |
getSourceGroupIds()
Gets a mapping from edges to an object representing their source edge group.
|
ItemMapping<IEdge,Collection<PortCandidate>> |
getSourcePortCandidates()
Gets a mapping from edges to a collection of their source port
candidates. |
ItemMapping<IEdge,PortConstraint> |
getSourcePortConstraints()
Gets a mapping from edges to their source
PortConstraint. |
ItemMapping<IEdge,Object> |
getTargetGroupIds()
Gets a mapping from edges to an object representing their target edge group.
|
ItemMapping<IEdge,Collection<PortCandidate>> |
getTargetPortCandidates()
Gets a mapping from edges to a collection of their target port
candidates. |
ItemMapping<IEdge,PortConstraint> |
getTargetPortConstraints()
Gets a mapping from edges to their target
PortConstraint. |
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAffectedEdges(DpKeyItemCollection<IEdge> value)
Sets the collection of affected edges.
|
void |
setAffectedNodes(DpKeyItemCollection<INode> value)
Sets the collection of affected nodes.
|
void |
setEdgeLayoutDescriptors(ItemMapping<IEdge,EdgeLayoutDescriptor> value)
Sets the mapping of edges to their
EdgeLayoutDescriptor. |
void |
setIgnoredLabels(ItemCollection<ILabel> value)
Sets the collection of labels of nodes or fixed edges that are ignored by the router.
|
void |
setLabelCrossingPenaltyFactors(ItemMapping<ILabel,Double> value)
Sets a mapping from labels to a crossing penalty factor.
|
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo. |
void |
setNodePortCandidateSets(ItemMapping<INode,PortCandidateSet> value)
Sets a mapping from nodes to their
PortCandidateSet. |
void |
setPartitionGridData(PartitionGridData value)
Sets the partition grid layout data.
|
void |
setSourceGroupIds(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their source edge group.
|
void |
setSourcePortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
Sets a mapping from edges to a collection of their source port
candidates. |
void |
setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their source
PortConstraint. |
void |
setTargetGroupIds(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their target edge group.
|
void |
setTargetPortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
Sets a mapping from edges to a collection of their target port
candidates. |
void |
setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their target
PortConstraint. |
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutDatalayoutGraphAdapter.apply in class LayoutDataadapter - The adapter to add the layout data to.layout - The layout that shall use this layout data.layoutGraph - The layout graph used for the layout calculation.public final AbortHandler getAbortHandler()
AbortHandler.ABORT_HANDLER_DPKEY,
setAbortHandler(AbortHandler)public final DpKeyItemCollection<IEdge> getAffectedEdges()
This collection is only used by the router if the Scope is set to
Scope.ROUTE_AFFECTED_EDGES.
EdgeRouter.getAffectedEdgesDpKey(),
setAffectedEdges(DpKeyItemCollection)public final DpKeyItemCollection<INode> getAffectedNodes()
This collection is only used by the router if the Scope is set to
Scope.ROUTE_EDGES_AT_AFFECTED_NODES.
EdgeRouter.getAffectedNodesDpKey(),
setAffectedNodes(DpKeyItemCollection)public final ItemMapping<IEdge,EdgeLayoutDescriptor> getEdgeLayoutDescriptors()
EdgeLayoutDescriptor.
If an edge is mapped to null, the default descriptor is
used.
EdgeRouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY,
setEdgeLayoutDescriptors(ItemMapping)public final ItemCollection<ILabel> getIgnoredLabels()
LabelLayoutKeys.IGNORED_LABELS_DPKEY,
setIgnoredLabels(ItemCollection)public final ItemMapping<ILabel,Double> getLabelCrossingPenaltyFactors()
The crossing penalty factor of a label is multiplied with the basic penalty for an edge crossing the label so crossing a label with a higher cost factor is stronger avoided then crossing one with a lower factor.
PenaltySettings.getEdgeLabelCrossingPenalty(),
PenaltySettings.getNodeLabelCrossingPenalty(),
EdgeRouter.LABEL_CROSSING_PENALTY_FACTOR_DPKEY,
setLabelCrossingPenaltyFactors(ItemMapping)public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo.NodeHalo.NODE_HALO_DPKEY,
setNodeHalos(ItemMapping)public final ItemMapping<INode,PortCandidateSet> getNodePortCandidateSets()
PortCandidateSet.PortCandidateSet.NODE_PORT_CANDIDATE_SET_DPKEY,
setNodePortCandidateSets(ItemMapping)public final PartitionGridData getPartitionGridData()
setPartitionGridData(PartitionGridData)public final ItemMapping<IEdge,Object> getSourceGroupIds()
PortConstraintKeys.SOURCE_GROUP_ID_DPKEY,
setSourceGroupIds(ItemMapping)public final ItemMapping<IEdge,Collection<PortCandidate>> getSourcePortCandidates()
candidates.PortCandidate.SOURCE_PORT_CANDIDATE_COLLECTION_DPKEY,
setSourcePortCandidates(ItemMapping)public final ItemMapping<IEdge,PortConstraint> getSourcePortConstraints()
PortConstraint.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY,
setSourcePortConstraints(ItemMapping)public final ItemMapping<IEdge,Object> getTargetGroupIds()
PortConstraintKeys.TARGET_GROUP_ID_DPKEY,
setTargetGroupIds(ItemMapping)public final ItemMapping<IEdge,Collection<PortCandidate>> getTargetPortCandidates()
candidates.PortCandidate.TARGET_PORT_CANDIDATE_COLLECTION_DPKEY,
setTargetPortCandidates(ItemMapping)public final ItemMapping<IEdge,PortConstraint> getTargetPortConstraints()
PortConstraint.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY,
setTargetPortConstraints(ItemMapping)public final void setAbortHandler(AbortHandler value)
value - The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY,
getAbortHandler()public final void setAffectedEdges(DpKeyItemCollection<IEdge> value)
This collection is only used by the router if the Scope is set to
Scope.ROUTE_AFFECTED_EDGES.
value - The AffectedEdges to set.EdgeRouter.getAffectedEdgesDpKey(),
getAffectedEdges()public final void setAffectedNodes(DpKeyItemCollection<INode> value)
This collection is only used by the router if the Scope is set to
Scope.ROUTE_EDGES_AT_AFFECTED_NODES.
value - The AffectedNodes to set.EdgeRouter.getAffectedNodesDpKey(),
getAffectedNodes()public final void setEdgeLayoutDescriptors(ItemMapping<IEdge,EdgeLayoutDescriptor> value)
EdgeLayoutDescriptor.
If an edge is mapped to null, the default descriptor is
used.
value - The EdgeLayoutDescriptors to set.EdgeRouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY,
getEdgeLayoutDescriptors()public final void setIgnoredLabels(ItemCollection<ILabel> value)
value - The IgnoredLabels to set.LabelLayoutKeys.IGNORED_LABELS_DPKEY,
getIgnoredLabels()public final void setLabelCrossingPenaltyFactors(ItemMapping<ILabel,Double> value)
The crossing penalty factor of a label is multiplied with the basic penalty for an edge crossing the label so crossing a label with a higher cost factor is stronger avoided then crossing one with a lower factor.
value - The LabelCrossingPenaltyFactors to set.PenaltySettings.getEdgeLabelCrossingPenalty(),
PenaltySettings.getNodeLabelCrossingPenalty(),
EdgeRouter.LABEL_CROSSING_PENALTY_FACTOR_DPKEY,
getLabelCrossingPenaltyFactors()public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo.value - The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY,
getNodeHalos()public final void setNodePortCandidateSets(ItemMapping<INode,PortCandidateSet> value)
PortCandidateSet.value - The NodePortCandidateSets to set.PortCandidateSet.NODE_PORT_CANDIDATE_SET_DPKEY,
getNodePortCandidateSets()public final void setPartitionGridData(PartitionGridData value)
value - The PartitionGridData to set.getPartitionGridData()public final void setSourceGroupIds(ItemMapping<IEdge,Object> value)
value - The SourceGroupIds to set.PortConstraintKeys.SOURCE_GROUP_ID_DPKEY,
getSourceGroupIds()public final void setSourcePortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
candidates.value - The SourcePortCandidates to set.PortCandidate.SOURCE_PORT_CANDIDATE_COLLECTION_DPKEY,
getSourcePortCandidates()public final void setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint.value - The SourcePortConstraints to set.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY,
getSourcePortConstraints()public final void setTargetGroupIds(ItemMapping<IEdge,Object> value)
value - The TargetGroupIds to set.PortConstraintKeys.TARGET_GROUP_ID_DPKEY,
getTargetGroupIds()public final void setTargetPortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
candidates.value - The TargetPortCandidates to set.PortCandidate.TARGET_PORT_CANDIDATE_COLLECTION_DPKEY,
getTargetPortCandidates()public final void setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint.value - The TargetPortConstraints to set.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY,
getTargetPortConstraints()