public class PartialLayoutData extends LayoutData
PartialLayout.| Constructor and Description |
|---|
PartialLayoutData() |
| 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.
|
ItemCollection<IEdge> |
getAffectedEdges()
Gets the collection of edges placed by the layout.
|
ItemCollection<INode> |
getAffectedNodes()
Gets the collection of nodes placed by the layout.
|
ItemMapping<INode,Object> |
getComponentIds()
Gets the mapping from partial nodes to an object defining their component assignment.
|
ItemCollection<IEdge> |
getDirectedEdges()
Gets the collection of edges that are considered as directed by the layout.
|
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo. |
PartitionGridData |
getPartitionGridData()
Gets the partition grid layout data.
|
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,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(ItemCollection<IEdge> value)
Sets the collection of edges placed by the layout.
|
void |
setAffectedNodes(ItemCollection<INode> value)
Sets the collection of nodes placed by the layout.
|
void |
setComponentIds(ItemMapping<INode,Object> value)
Sets the mapping from partial nodes to an object defining their component assignment.
|
void |
setDirectedEdges(ItemCollection<IEdge> value)
Sets the collection of edges that are considered as directed by the layout.
|
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo. |
void |
setPartitionGridData(PartitionGridData value)
Sets the partition grid layout data.
|
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 |
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 ItemCollection<IEdge> getAffectedEdges()
PartialLayout.AFFECTED_EDGES_DPKEY,
setAffectedEdges(ItemCollection)public final ItemCollection<INode> getAffectedNodes()
PartialLayout.AFFECTED_NODES_DPKEY,
setAffectedNodes(ItemCollection)public final ItemMapping<INode,Object> getComponentIds()
All partial nodes associated with the same object are assigned to the same subgraph component.
PartialLayout.COMPONENT_ID_DPKEY,
ComponentAssignmentStrategy.CUSTOMIZED,
PartialLayout.getComponentAssignmentStrategy(),
setComponentIds(ItemMapping)public final ItemCollection<IEdge> getDirectedEdges()
Only if the LayoutOrientation is not LayoutOrientation.NONE
the directedness of edges has an effect.
PartialLayout.DIRECTED_EDGES_DPKEY,
setDirectedEdges(ItemCollection)public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo.NodeHalo.NODE_HALO_DPKEY,
setNodeHalos(ItemMapping)public final PartitionGridData getPartitionGridData()
setPartitionGridData(PartitionGridData)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,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(ItemCollection<IEdge> value)
value - The AffectedEdges to set.PartialLayout.AFFECTED_EDGES_DPKEY,
getAffectedEdges()public final void setAffectedNodes(ItemCollection<INode> value)
value - The AffectedNodes to set.PartialLayout.AFFECTED_NODES_DPKEY,
getAffectedNodes()public final void setComponentIds(ItemMapping<INode,Object> value)
All partial nodes associated with the same object are assigned to the same subgraph component.
value - The ComponentIds to set.PartialLayout.COMPONENT_ID_DPKEY,
ComponentAssignmentStrategy.CUSTOMIZED,
PartialLayout.getComponentAssignmentStrategy(),
getComponentIds()public final void setDirectedEdges(ItemCollection<IEdge> value)
Only if the LayoutOrientation is not LayoutOrientation.NONE
the directedness of edges has an effect.
value - The DirectedEdges to set.PartialLayout.DIRECTED_EDGES_DPKEY,
getDirectedEdges()public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo.value - The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY,
getNodeHalos()public final void setPartitionGridData(PartitionGridData value)
value - The PartitionGridData to set.getPartitionGridData()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 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()