org.kite9.diagram.primitives
Class AbstractContainer

java.lang.Object
  extended by org.kite9.diagram.primitives.AbstractConnectedContained
      extended by 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


Field Summary
protected  Label label
           
 
Fields inherited from class org.kite9.diagram.primitives.AbstractConnectedContained
renderingInformation
 
Constructor Summary
AbstractContainer()
           
AbstractContainer(String id, List<Contained> contents, Direction d, Label label)
           
 
Method Summary
 List<Contained> getContents()
           
 Label getLabel()
           
 Direction getLayoutDirection()
          Returns the order in which contents of the container should be laid out, or null if there is no canonical ordering.
 RouteRenderingInformation getRenderingInformation()
           
 void setLabel(Label label)
           
 void setLayoutDirection(Direction layout)
           
 
Methods inherited from class org.kite9.diagram.primitives.AbstractConnectedContained
addLink, compareTo, createID, getContainer, getID, getLinks, hashCode, isConnectedDirectlyTo, removeLink, setContainer, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kite9.diagram.primitives.Connected
addLink, getLinks, isConnectedDirectlyTo, removeLink
 

Field Detail

label

@XStreamAsAttribute
protected Label label
Constructor Detail

AbstractContainer

public AbstractContainer()

AbstractContainer

public AbstractContainer(String id,
                         List<Contained> contents,
                         Direction d,
                         Label label)
Method Detail

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.