|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableEdgeModel
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.
Method Summary | |
---|---|
boolean |
acceptHead(Object edge,
Object head)
Return whether or not the given node is a valid head of this edge. |
boolean |
acceptTail(Object edge,
Object tail)
Return whether or not the given node is a valid tail of this edge. |
void |
setHead(Object edge,
Object head)
Set the node that this edge points to. |
void |
setTail(Object edge,
Object tail)
Set the node that this edge stems from. |
Methods inherited from interface diva.graph.modular.EdgeModel |
---|
getHead, getTail, isDirected |
Method Detail |
---|
boolean acceptHead(Object edge, Object head)
boolean acceptTail(Object edge, Object tail)
void setHead(Object edge, Object head)
void setTail(Object edge, Object tail)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |