org.kite9.diagram.primitives
Class AbstractConnectedContained

java.lang.Object
  extended by org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
      extended by org.kite9.diagram.primitives.AbstractConnectedContained
All Implemented Interfaces:
Comparable<DiagramElement>, Connected, Contained, DiagramElement, IdentifiableDiagramElement
Direct Known Subclasses:
AbstractConnectedContainer, Arrow, Glyph

public abstract class AbstractConnectedContained
extends AbstractIdentifiableDiagramElement
implements Connected, Contained

This is the base class for most Connected elements within the diagram. e.g. Arrows, Glyphs, Contexts.

Author:
robmoffat

Field Summary
 
Fields inherited from class org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
renderingInformation
 
Constructor Summary
AbstractConnectedContained()
           
AbstractConnectedContained(String id)
           
 
Method Summary
 void addLink(Connection l)
          Adds a link to the collection
 Connection getConnectionTo(Connected c)
          Returns the connection between this object and c.
 Container getContainer()
           
 Collection<Connection> getLinks()
          Returns an unmodifiable collection of links
 boolean isConnectedDirectlyTo(Connected c)
          Means that there exists a connection with this object at one end and c at the other.
 void removeLink(Connection l)
          Removes a link from the collection
 void setContainer(Container c)
           
 
Methods inherited from class org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
compareTo, createID, getID, hashCode, resetCounter, 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.IdentifiableDiagramElement
getID, setID
 
Methods inherited from interface org.kite9.diagram.primitives.DiagramElement
getRenderingInformation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractConnectedContained

public AbstractConnectedContained()

AbstractConnectedContained

public AbstractConnectedContained(String id)
Method Detail

addLink

public void addLink(Connection l)
Description copied from interface: Connected
Adds a link to the collection

Specified by:
addLink in interface Connected

getContainer

public Container getContainer()
Specified by:
getContainer in interface Contained

setContainer

public void setContainer(Container c)
Specified by:
setContainer in interface Contained

getLinks

public Collection<Connection> getLinks()
Description copied from interface: Connected
Returns an unmodifiable collection of links

Specified by:
getLinks in interface Connected

removeLink

public void removeLink(Connection l)
Description copied from interface: Connected
Removes a link from the collection

Specified by:
removeLink in interface Connected

getConnectionTo

public Connection getConnectionTo(Connected c)
Description copied from interface: Connected
Returns the connection between this object and c.

Specified by:
getConnectionTo in interface Connected

isConnectedDirectlyTo

public boolean isConnectedDirectlyTo(Connected c)
Description copied from interface: Connected
Means that there exists a connection with this object at one end and c at the other.

Specified by:
isConnectedDirectlyTo in interface Connected


Copyright © 2011. All Rights Reserved.