View Javadoc

1   package org.kite9.diagram.primitives;
2   
3   import java.util.Collection;
4   
5   /***
6    * A diagram element which has connections that link to other Connected items within the diagram.
7    * 
8    * @author robmoffat
9    *
10   */
11  public interface Connected extends IdentifiableDiagramElement {
12  
13  	/***
14  	 * Returns an unmodifiable collection of links
15  	 */
16  	Collection<Connection> getLinks();
17  	
18  	/***
19  	 * Removes a link from the collection
20  	 */
21  	void removeLink(Connection l);
22  	
23  	/***
24  	 * Adds a link to the collection
25  	 */
26  	void addLink(Connection l);
27  	
28  	/***
29  	 * Means that there exists a connection with this object at one end and c
30  	 * at the other.
31  	 */
32  	boolean isConnectedDirectlyTo(Connected c);
33  }