public class ComponentLayoutData extends LayoutData
ComponentLayout.| Constructor and Description |
|---|
ComponentLayoutData() |
| 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> |
getAffectedComponents()
Gets a collection of nodes that determine the components that shall be laid out.
|
ItemMapping<INode,Comparable> |
getComponentIds()
Gets the mapping from nodes to their component comparable that is used to sort the components.
|
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo. |
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAffectedComponents(ItemCollection<INode> value)
Sets a collection of nodes that determine the components that shall be laid out.
|
void |
setComponentIds(ItemMapping<INode,Comparable> value)
Sets the mapping from nodes to their component comparable that is used to sort the components.
|
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo. |
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> getAffectedComponents()
Note that components will be laid out if and only if at least one of the nodes is in this collection.
ComponentLayout.AFFECTED_COMPONENTS_DPKEY,
setAffectedComponents(ItemCollection)public final ItemMapping<INode,Comparable> getComponentIds()
ComponentLayout.COMPONENT_ID_DPKEY,
setComponentIds(ItemMapping)public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo.NodeHalo.NODE_HALO_DPKEY,
setNodeHalos(ItemMapping)public final void setAbortHandler(AbortHandler value)
value - The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY,
getAbortHandler()public final void setAffectedComponents(ItemCollection<INode> value)
Note that components will be laid out if and only if at least one of the nodes is in this collection.
value - The AffectedComponents to set.ComponentLayout.AFFECTED_COMPONENTS_DPKEY,
getAffectedComponents()public final void setComponentIds(ItemMapping<INode,Comparable> value)
value - The ComponentIds to set.ComponentLayout.COMPONENT_ID_DPKEY,
getComponentIds()public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo.value - The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY,
getNodeHalos()