|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
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.
Red |
Method Summary | |
---|---|
boolean |
acceptHead(Node head)
Return whether or not the given node is a valid head of this edge. |
boolean |
acceptTail(Node tail)
Return whether or not the given node is a valid tail of this edge. |
Node |
getHead()
Return the node at the head of this edge. |
Node |
getTail()
Return the node at the tail of this edge. |
boolean |
isDirected()
Return whether or not this edge is directed. |
void |
setHead(Node head)
Set the node that this edge points to. |
void |
setTail(Node tail)
Set the node that this edge stems from. |
Methods inherited from interface diva.util.SemanticObjectContainer |
---|
getSemanticObject, setSemanticObject |
Methods inherited from interface diva.util.PropertyContainer |
---|
getProperty, propertyNames, setProperty |
Method Detail |
---|
boolean acceptHead(Node head)
boolean acceptTail(Node tail)
Node getHead()
Node getTail()
boolean isDirected()
void setHead(Node head)
void setTail(Node tail)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |