org.kite9.diagram.primitives
Class AbstractConnectedContained
java.lang.Object
org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
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
AbstractConnectedContained
public AbstractConnectedContained()
AbstractConnectedContained
public AbstractConnectedContained(String id)
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.