public class StraightLineEdgeRouterData extends LayoutData
StraightLineEdgeRouter.| Constructor and Description |
|---|
StraightLineEdgeRouterData() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter. |
DpKeyItemCollection<IEdge> |
getAffectedEdges()
Gets the collection of affected edges.
|
DpKeyItemCollection<INode> |
getAffectedNodes()
Gets the collection of affected nodes.
|
ItemMapping<IEdge,PortConstraint> |
getSourcePortConstraints()
Gets a mapping from edges to their source
PortConstraint. |
ItemMapping<IEdge,PortConstraint> |
getTargetPortConstraints()
Gets a mapping from edges to their target
PortConstraint. |
void |
setAffectedEdges(DpKeyItemCollection<IEdge> value)
Sets the collection of affected edges.
|
void |
setAffectedNodes(DpKeyItemCollection<INode> value)
Sets the collection of affected nodes.
|
void |
setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their source
PortConstraint. |
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 DpKeyItemCollection<IEdge> getAffectedEdges()
This collection is only used by the router if the Scope
is set to Scope.ROUTE_AFFECTED_EDGES.
StraightLineEdgeRouter.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.
StraightLineEdgeRouter.getAffectedNodesDpKey(),
setAffectedNodes(DpKeyItemCollection)public final ItemMapping<IEdge,PortConstraint> getSourcePortConstraints()
PortConstraint.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY,
setSourcePortConstraints(ItemMapping)public final ItemMapping<IEdge,PortConstraint> getTargetPortConstraints()
PortConstraint.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY,
setTargetPortConstraints(ItemMapping)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.StraightLineEdgeRouter.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.StraightLineEdgeRouter.getAffectedNodesDpKey(),
getAffectedNodes()public final void setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint.value - The SourcePortConstraints to set.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY,
getSourcePortConstraints()public final void setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint.value - The TargetPortConstraints to set.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY,
getTargetPortConstraints()