public class DockLayoutComposition extends Object
DockLayoutComposition
describes all relations and positions of a
set of DockElement
s. The DockLayoutComposition
does not
have any references to DockElement
s, but with the help of a
DockSituation
new trees of DockElement
s 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 null
adjacent
- additional information about the element, can be null
children
- 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()
null
public 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 ignored