treebolic.model
Class Edge

java.lang.Object
  extended by treebolic.model.EdgeData
      extended by treebolic.model.XEdgeData
          extended by treebolic.model.Edge
All Implemented Interfaces:
IEdge
Direct Known Subclasses:
MutableEdge

public class Edge
extends XEdgeData
implements IEdge

Edge

Author:
Bernard Bou

Field Summary
protected  INode theFromNode
          From-node
protected  INode theToNode
          To-node
 
Fields inherited from class treebolic.model.XEdgeData
theImage
 
Fields inherited from class treebolic.model.EdgeData
theColor, theImageFile, theLabel, theStyle
 
Fields inherited from interface treebolic.model.IEdge
ARROW, CIRCLE, DASH, DIAMOND, DOT, FROMARROW, FROMCIRCLE, FROMDIAMOND, FROMHOOK, FROMMASK, FROMSHIFT, FROMSOLID, FROMTRIANGLE, HIDDEN, HOOK, SHAPEMASK, SOLID, STROKEMASK, TOARROW, TOCIRCLE, TODIAMOND, TOHOOK, TOMASK, TOSHIFT, TOSOLID, TOTRIANGLE, TRIANGLE
 
Constructor Summary
Edge(INode thisFromINode, INode thisToINode)
          Construct edge
 
Method Summary
 INode getFrom()
          Get from-node
 INode getTo()
          Get to-node
 java.lang.String toString()
           
 
Methods inherited from class treebolic.model.XEdgeData
getImage, setImage
 
Methods inherited from class treebolic.model.EdgeData
getColor, getImageFile, getLabel, getStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface treebolic.model.IEdge
getColor, getImage, getImageFile, getLabel, getStyle, setImage
 

Field Detail

theFromNode

protected INode theFromNode
From-node


theToNode

protected INode theToNode
To-node

Constructor Detail

Edge

public Edge(INode thisFromINode,
            INode thisToINode)
Construct edge

Parameters:
thisFromINode - from node
thisToINode - to node
Method Detail

getFrom

public INode getFrom()
Description copied from interface: IEdge
Get from-node

Specified by:
getFrom in interface IEdge
Returns:
from-node

getTo

public INode getTo()
Description copied from interface: IEdge
Get to-node

Specified by:
getTo in interface IEdge
Returns:
to-node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object