public class CompositeLayoutData extends LayoutData
LayoutData instances.
This is especially useful if several layouts are run at once, for example a general layout and a subsequent edge routing.
| Constructor and Description |
|---|
CompositeLayoutData()
Creates an instance.
|
CompositeLayoutData(Collection<LayoutData> items)
Creates an instance using the specified layout data collection.
|
CompositeLayoutData(LayoutData... layoutDataObjects)
Creates an instance using the specified layout data objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter. |
Collection<LayoutData> |
getItems()
Gets a collection of composed layout data objects.
|
void |
setItems(Collection<LayoutData> value)
Sets a collection of composed layout data objects.
|
public CompositeLayoutData()
public CompositeLayoutData(Collection<LayoutData> items)
items - The collection of layout data objects.public CompositeLayoutData(LayoutData... layoutDataObjects)
layoutDataObjects - The layout data objects that shall be composed.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 Collection<LayoutData> getItems()
setItems(Collection)public final void setItems(Collection<LayoutData> value)
value - The Items to set.getItems()