public class TreeLayoutData extends LayoutData
TreeLayout.| Constructor and Description |
|---|
TreeLayoutData() |
| 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<INode> |
getAssistantNodes()
Gets the collection of nodes the
AssistantNodePlacer considers as assistants. |
ItemCollection<INode> |
getDelegatingNodePlacersPrimaryNodes()
Gets the collection of nodes the
DelegatingNodePlacer places with its
PrimaryPlacer. |
ItemMapping<INode,Integer> |
getGridNodePlacerRowIndices()
Gets the mapping from nodes to the index of the row the
GridNodePlacer shall place the node in. |
ItemMapping<INode,Boolean> |
getLeftRightPlacersLeftNodes()
Gets a mapping from nodes to a boolean value that specifies whether a node should be placed left of the bus
(
true) or right of the bus (false). |
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo. |
ItemMapping<INode,INodePlacer> |
getNodePlacers()
Gets the mapping from nodes to their
INodePlacer. |
ItemMapping<INode,Comparator<IEdge>> |
getOutEdgeComparators()
Gets the mapping from nodes to comparison functions used to sort the nodes' outgoing edges.
|
ItemMapping<INode,IPortAssignment> |
getPortAssignments()
Gets the mapping from nodes to their
IPortAssignment. |
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. |
ItemMapping<INode,Boolean> |
getTreeRoot()
Gets the mapping for marking the node that will be used as root node of the tree.
|
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAssistantNodes(ItemCollection<INode> value)
Sets the collection of nodes the
AssistantNodePlacer considers as assistants. |
void |
setDelegatingNodePlacersPrimaryNodes(ItemCollection<INode> value)
Sets the collection of nodes the
DelegatingNodePlacer places with its
PrimaryPlacer. |
void |
setGridNodePlacerRowIndices(ItemMapping<INode,Integer> value)
Sets the mapping from nodes to the index of the row the
GridNodePlacer shall place the node in. |
void |
setLeftRightPlacersLeftNodes(ItemMapping<INode,Boolean> value)
Sets a mapping from nodes to a boolean value that specifies whether a node should be placed left of the bus
(
true) or right of the bus (false). |
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo. |
void |
setNodePlacers(ItemMapping<INode,INodePlacer> value)
Sets the mapping from nodes to their
INodePlacer. |
void |
setOutEdgeComparators(ItemMapping<INode,Comparator<IEdge>> value)
Sets the mapping from nodes to comparison functions used to sort the nodes' outgoing edges.
|
void |
setPortAssignments(ItemMapping<INode,IPortAssignment> value)
Sets the mapping from nodes to their
IPortAssignment. |
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. |
void |
setTreeRoot(ItemMapping<INode,Boolean> value)
Sets the mapping for marking the node that will be used as root node of the tree.
|
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<INode> getAssistantNodes()
AssistantNodePlacer considers as assistants.
This collection is only considered if NodePlacers returns any AssistantNodePlacer .
AssistantNodePlacer.ASSISTANT_NODE_DPKEY,
setAssistantNodes(ItemCollection)public final ItemCollection<INode> getDelegatingNodePlacersPrimaryNodes()
DelegatingNodePlacer places with its
PrimaryPlacer.
This collection is only considered if NodePlacers returns any DelegatingNodePlacer .
DelegatingNodePlacer.PRIMARY_NODES_DPKEY,
setDelegatingNodePlacersPrimaryNodes(ItemCollection)public final ItemMapping<INode,Integer> getGridNodePlacerRowIndices()
GridNodePlacer shall place the node in.
This collection is only considered if NodePlacers returns any GridNodePlacer .
GridNodePlacer.ROW_INDEX_DPKEY,
setGridNodePlacerRowIndices(ItemMapping)public final ItemMapping<INode,Boolean> getLeftRightPlacersLeftNodes()
true) or right of the bus (false).
This mapping is only considered if NodePlacers returns a LeftRightNodePlacer .
LeftRightNodePlacer.LEFT_RIGHT_DPKEY,
setLeftRightPlacersLeftNodes(ItemMapping)public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo.NodeHalo.NODE_HALO_DPKEY,
setNodeHalos(ItemMapping)public final ItemMapping<INode,INodePlacer> getNodePlacers()
INodePlacer.TreeLayout.NODE_PLACER_DPKEY,
setNodePlacers(ItemMapping)public final ItemMapping<INode,Comparator<IEdge>> getOutEdgeComparators()
TreeLayout.OUT_EDGE_COMPARATOR_DPKEY,
setOutEdgeComparators(ItemMapping)public final ItemMapping<INode,IPortAssignment> getPortAssignments()
IPortAssignment.TreeLayout.PORT_ASSIGNMENT_DPKEY,
setPortAssignments(ItemMapping)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 ItemMapping<INode,Boolean> getTreeRoot()
TreeLayout.SELECTED_ROOT_DPKEY,
setTreeRoot(ItemMapping)public final void setAbortHandler(AbortHandler value)
value - The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY,
getAbortHandler()public final void setAssistantNodes(ItemCollection<INode> value)
AssistantNodePlacer considers as assistants.
This collection is only considered if NodePlacers returns any AssistantNodePlacer .
value - The AssistantNodes to set.AssistantNodePlacer.ASSISTANT_NODE_DPKEY,
getAssistantNodes()public final void setDelegatingNodePlacersPrimaryNodes(ItemCollection<INode> value)
DelegatingNodePlacer places with its
PrimaryPlacer.
This collection is only considered if NodePlacers returns any DelegatingNodePlacer .
value - The DelegatingNodePlacersPrimaryNodes to set.DelegatingNodePlacer.PRIMARY_NODES_DPKEY,
getDelegatingNodePlacersPrimaryNodes()public final void setGridNodePlacerRowIndices(ItemMapping<INode,Integer> value)
GridNodePlacer shall place the node in.
This collection is only considered if NodePlacers returns any GridNodePlacer .
value - The GridNodePlacerRowIndices to set.GridNodePlacer.ROW_INDEX_DPKEY,
getGridNodePlacerRowIndices()public final void setLeftRightPlacersLeftNodes(ItemMapping<INode,Boolean> value)
true) or right of the bus (false).
This mapping is only considered if NodePlacers returns a LeftRightNodePlacer .
value - The LeftRightPlacersLeftNodes to set.LeftRightNodePlacer.LEFT_RIGHT_DPKEY,
getLeftRightPlacersLeftNodes()public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo.value - The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY,
getNodeHalos()public final void setNodePlacers(ItemMapping<INode,INodePlacer> value)
INodePlacer.value - The NodePlacers to set.TreeLayout.NODE_PLACER_DPKEY,
getNodePlacers()public final void setOutEdgeComparators(ItemMapping<INode,Comparator<IEdge>> value)
value - The OutEdgeComparators to set.TreeLayout.OUT_EDGE_COMPARATOR_DPKEY,
getOutEdgeComparators()public final void setPortAssignments(ItemMapping<INode,IPortAssignment> value)
IPortAssignment.value - The PortAssignments to set.TreeLayout.PORT_ASSIGNMENT_DPKEY,
getPortAssignments()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()public final void setTreeRoot(ItemMapping<INode,Boolean> value)
value - The TreeRoot to set.TreeLayout.SELECTED_ROOT_DPKEY,
getTreeRoot()