public class DockLayoutComposition extends Object
DockLayoutComposition describes all relations and positions of a
set of DockElements. The DockLayoutComposition does not
have any references to DockElements, but with the help of a
DockSituation new trees of DockElements can be created.| Constructor and Description |
|---|
DockLayoutComposition(DockLayoutInfo layout,
List<DockLayout<?>> adjacent,
List<DockLayoutComposition> children,
boolean ignoreChildren)
Creates a new composition.
|
| Modifier and Type | Method and Description |
|---|---|
List<DockLayout<?>> |
getAdjacent()
Gets the additional information about the element.
|
DockLayout<?> |
getAdjacent(String factoryId)
Searches for the
DockLayout whose factory is set to factoryId. |
List<DockLayoutComposition> |
getChildren()
Gets the list of all known children of this composition.
|
DockLayoutInfo |
getLayout()
Gets the layout which describes the element of this composition.
|
boolean |
isIgnoreChildren()
Tells that the children of this composition were ignored.
|
public DockLayoutComposition(DockLayoutInfo layout, List<DockLayout<?>> adjacent, List<DockLayoutComposition> children, boolean ignoreChildren)
layout - the content of the element that is represented by this composition,
can be nulladjacent - additional information about the element, can be nullchildren - the children of the station represented by this compositionignoreChildren - whether the children should be ignored or notpublic DockLayoutInfo getLayout()
null to indicate that this composition
was not loaded properlypublic List<DockLayout<?>> getAdjacent()
nullpublic DockLayout<?> getAdjacent(String factoryId)
DockLayout whose factory is set to factoryId.factoryId - the name of some AdjacentDockFactory.null if not foundpublic List<DockLayoutComposition> getChildren()
public boolean isIgnoreChildren()
true if the children are to be ignoredCopyright © 2017 Docking Frames. All rights reserved.