org.kite9.diagram.primitives
Class AbstractContainer
java.lang.Object
org.kite9.diagram.primitives.AbstractConnectedContained
org.kite9.diagram.primitives.AbstractContainer
- All Implemented Interfaces:
- Comparable<DiagramElement>, Connected, Contained, Container, DiagramElement, IdentifiableDiagramElement
- Direct Known Subclasses:
- Context, Diagram
public abstract class AbstractContainer
- extends AbstractConnectedContained
- implements Container
| Methods inherited from class org.kite9.diagram.primitives.AbstractConnectedContained |
addLink, compareTo, createID, getContainer, getID, getLinks, hashCode, isConnectedDirectlyTo, removeLink, setContainer, setID |
label
@XStreamAsAttribute
protected Label label
AbstractContainer
public AbstractContainer()
AbstractContainer
public AbstractContainer(String id,
List<Contained> contents,
Direction d,
Label label)
getLabel
public Label getLabel()
- Specified by:
getLabel in interface Container
getRenderingInformation
public RouteRenderingInformation getRenderingInformation()
- Specified by:
getRenderingInformation in interface Container- Specified by:
getRenderingInformation in interface DiagramElement
getContents
public List<Contained> getContents()
- Specified by:
getContents in interface Container
getLayoutDirection
public Direction getLayoutDirection()
- Description copied from interface:
Container
- Returns the order in which contents of the container should be
laid out, or null if there is no canonical ordering.
Note: layout can only be respected if the contents are provided in
a
Collection in which the ordering is explicit. e.g. a List
- Specified by:
getLayoutDirection in interface Container
setLayoutDirection
public void setLayoutDirection(Direction layout)
- Specified by:
setLayoutDirection in interface Container
setLabel
public void setLabel(Label label)
- Specified by:
setLabel in interface Container
Copyright © 2010. All Rights Reserved.