org.kite9.diagram.primitives
Interface Connected

All Superinterfaces:
Comparable<DiagramElement>, DiagramElement, IdentifiableDiagramElement
All Known Subinterfaces:
Container
All Known Implementing Classes:
AbstractConnectedContained, AbstractConnectedContainer, Arrow, Context, Diagram, Glyph

public interface Connected
extends IdentifiableDiagramElement

A diagram element which has connections that link to other Connected items within the diagram.

Author:
robmoffat

Method Summary
 void addLink(Connection l)
          Adds a link to the collection
 Connection getConnectionTo(Connected c)
          Returns the connection between this object and c.
 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
 
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
 

Method Detail

getLinks

Collection<Connection> getLinks()
Returns an unmodifiable collection of links


removeLink

void removeLink(Connection l)
Removes a link from the collection


addLink

void addLink(Connection l)
Adds a link to the collection


isConnectedDirectlyTo

boolean isConnectedDirectlyTo(Connected c)
Means that there exists a connection with this object at one end and c at the other.


getConnectionTo

Connection getConnectionTo(Connected c)
Returns the connection between this object and c.



Copyright © 2011. All Rights Reserved.