Package diva.graph.modular
Interface Edge
- 
- All Superinterfaces:
- PropertyContainer,- SemanticObjectContainer
 
 public interface Edge extends SemanticObjectContainer, PropertyContainer An edge is an object that is contained by a graph and connects nodes. An edge has a "head" and a "tail" as if it was directed, but also has a method isDirected() that says whether or not the edge should be treated as directed (e.g. should there be an arrow drawn on the head). An edge has a semantic object that is its semantic equivalent in the application and may have a visual object which is its syntactic representation in the user interface.- Version:
- $Id$
- Author:
- Michael Shilman
- Pt.AcceptedRating:
- Red
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptHead(Node head)Return whether or not the given node is a valid head of this edge.booleanacceptTail(Node tail)Return whether or not the given node is a valid tail of this edge.NodegetHead()Return the node at the head of this edge.NodegetTail()Return the node at the tail of this edge.booleanisDirected()Return whether or not this edge is directed.voidsetHead(Node head)Set the node that this edge points to.voidsetTail(Node tail)Set the node that this edge stems from.- 
Methods inherited from interface diva.util.PropertyContainergetProperty, propertyNames, setProperty
 - 
Methods inherited from interface diva.util.SemanticObjectContainergetSemanticObject, setSemanticObject
 
- 
 
- 
- 
- 
Method Detail- 
acceptHeadboolean acceptHead(Node head) Return whether or not the given node is a valid head of this edge.
 - 
acceptTailboolean acceptTail(Node tail) Return whether or not the given node is a valid tail of this edge.
 - 
getHeadNode getHead() Return the node at the head of this edge.
 - 
getTailNode getTail() Return the node at the tail of this edge.
 - 
isDirectedboolean isDirected() Return whether or not this edge is directed.
 - 
setHeadvoid setHead(Node head) Set the node that this edge points to. Implementors of this method are also responsible for insuring that it is set properly as an "incoming" edge of the node, and that it is removed as an incoming edge from its previous head node.
 - 
setTailvoid setTail(Node tail) Set the node that this edge stems from. Implementors of this method are also responsible for insuring that it is set properly as an "outgoing" edge of the node, and that it is removed as an outgoing edge from its previous tail node.
 
- 
 
-