org.wilmascope.control
Class GraphControl.Edge

java.lang.Object
  extended by org.wilmascope.control.GraphControl.GraphElementFacade
      extended by org.wilmascope.control.GraphControl.Edge
Enclosing class:
GraphControl

public class GraphControl.Edge
extends GraphControl.GraphElementFacade

The interface for edges


Method Summary
 Edge getEdge()
          get the edge underlying this facade
 GraphControl.Node getEndNode()
           
 GraphControl.Node getStartNode()
           
 float getWeight()
           
 void reverseDirection()
           
 void setRelaxedLength(float length)
          set the natural or unstretched or compacted length of the edge
 void setView(EdgeView view)
           
 void setWeight(float weight)
           
 
Methods inherited from class org.wilmascope.control.GraphControl.GraphElementFacade
addPickingClient, defaultColour, delete, getColour, getDefaultColour, getLabel, getUserData, getView, getViewType, hide, highlightColour, initView, isDefaultColour, setColour, setColour, setLabel, setLabel, setPickable, setUserData, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setView

public void setView(EdgeView view)

setRelaxedLength

public void setRelaxedLength(float length)
set the natural or unstretched or compacted length of the edge

Parameters:
length - the new natural length for the edge

reverseDirection

public void reverseDirection()

setWeight

public void setWeight(float weight)

getWeight

public float getWeight()

getStartNode

public GraphControl.Node getStartNode()

getEndNode

public GraphControl.Node getEndNode()

getEdge

public Edge getEdge()
get the edge underlying this facade