Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.graph.modular
Interface MutableEdgeModel

All Superinterfaces:
EdgeModel
All Known Implementing Classes:
ActorGraphModel.LinkModel, BasicModularGraphModel.BasicEdgeModel, FSMGraphModel.ArcModel

public interface MutableEdgeModel
extends EdgeModel

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: MutableEdgeModel.java,v 1.10 2005年07月08日 19:55:07 cxh Exp $
Author:
Michael Shilman
Accepted Rating:
Red

Method Summary
boolean acceptHead(java.lang.Object edge, java.lang.Object head)
Return whether or not the given node is a valid head of this edge.
boolean acceptTail(java.lang.Object edge, java.lang.Object tail)
Return whether or not the given node is a valid tail of this edge.
void setHead(java.lang.Object edge, java.lang.Object head)
Set the node that this edge points to.
void setTail(java.lang.Object edge, java.lang.Object tail)
Set the node that this edge stems from.
Methods inherited from interface diva.graph.modular.EdgeModel
getHead, getTail, isDirected

Method Detail

acceptHead

public boolean acceptHead(java.lang.Object edge,
 java.lang.Object head)
Return whether or not the given node is a valid head of this edge.


acceptTail

public boolean acceptTail(java.lang.Object edge,
 java.lang.Object tail)
Return whether or not the given node is a valid tail of this edge.


setHead

public void setHead(java.lang.Object edge,
 java.lang.Object 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.


setTail

public void setTail(java.lang.Object edge,
 java.lang.Object 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.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /