|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fluxion.graph.AbstractEdge
public abstract class AbstractEdge
An abstract implementation of Edge which provides common
implementations os the setter and getter methods defined by this interface.
Unless you have a specific reason to, it is best to subclass this class and
use the standard implementations when defining a new Edge
instead of implementing Edge directly. Using this approach, all
that is needed is to define how the new Edge handles owl
properties.
| Constructor Summary | |
|---|---|
AbstractEdge()
|
|
| Method Summary | |
|---|---|
void |
accept(EdgeVisitor visitor)
|
Node |
getHeadNode()
Return the Node at the head of this Edge. |
java.lang.String |
getLabel()
A String to use as the label for this Edge when drawn on the graph. |
Node |
getTailNode()
Return the Node at the tail of this Edge. |
void |
setHeadNode(Node head)
Set the Node at the head of this Edge. |
void |
setLabel(java.lang.String label)
Sets the String to use as a label. |
void |
setTailNode(Node tail)
Set the Node at the tail of this Edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEdge()
| Method Detail |
|---|
public void setLabel(java.lang.String label)
Edge
setLabel in interface Edgelabel - the label on this edgepublic java.lang.String getLabel()
Edge
getLabel in interface Edgepublic void setHeadNode(Node head)
Edge
setHeadNode in interface Edgehead - the node at the head of this edgepublic Node getHeadNode()
Edge
getHeadNode in interface Edgepublic void setTailNode(Node tail)
Edge
setTailNode in interface Edgetail - the node at the tail of this edgepublic Node getTailNode()
Edge
getTailNode in interface Edgepublic void accept(EdgeVisitor visitor)
accept in interface Edge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||