treebolic.model
Class TreeMutableEdge

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

public class TreeMutableEdge
extends MutableEdge

Extended mutable node (mutable ends, copy constructor)

Author:
Bernard Bou

Field Summary
 
Fields inherited from class treebolic.model.Edge
theFromNode, theToNode
 
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
TreeMutableEdge(IEdge thatEdge)
          Copy constructor (the resulting edge has no node ends)
TreeMutableEdge(MutableNode thisFrom, MutableNode thisTo)
          Constructor
 
Method Summary
 void setFrom(MutableNode thisFromNode)
          Set from-node (origin)
 void setTo(MutableNode thisToNode)
          Set to-node (destination)
 
Methods inherited from class treebolic.model.MutableEdge
setColor, setImageFile, setLabel, setStyle
 
Methods inherited from class treebolic.model.Edge
getFrom, getTo, 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
 

Constructor Detail

TreeMutableEdge

public TreeMutableEdge(MutableNode thisFrom,
                       MutableNode thisTo)
Constructor

Parameters:
thisFrom - from node (may be null)
thisTo - to node (may be null)

TreeMutableEdge

public TreeMutableEdge(IEdge thatEdge)
Copy constructor (the resulting edge has no node ends)

Parameters:
thatEdge - edge
Method Detail

setFrom

public void setFrom(MutableNode thisFromNode)
Set from-node (origin)

Parameters:
thisFromNode - from-node (may be null)

setTo

public void setTo(MutableNode thisToNode)
Set to-node (destination)

Parameters:
thisToNode - to-node (may be null)