WT Toolkit 0.3.3

Class wtGraph

Object
   |
   +--wtObject
         |
         +--wtGraph

class wtGraph
extends wtObject


A container for G=(V,E) vertices and their corresponding edges.
Defined in wt_vector.js


Constructor Summary
wtGraph(<wtCanvas> parentCanvas)
            Constructs a G=(V,E) graph.
 
Method Summary
 Object addVertex(<wtGraphVertex> vertex)
           Adds a vertex to this graph.
 wtCanvas getCanvas()
           Tells the container canvas of this graph.
 Object getVertices()
           Tells the vertices contained in this graph.
 Object linkFromMouse(<wtGraphVertex> sourceVertex, <Class> edgeClass)
           Generates an edge whose source is fixed to be one vertex and let the user select the terminal vertex from the same graph with his mouse.
 Object linkToMouse(termVertex, <Class> edgeClass)
           Generates an edge whose terminal is fixed to be one vertex and let the user select the source vertex from the same graph with his mouse.
 Object linkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex, <Class> edgeClass)
           Links two vertices with an edge from an optionally specified edge class.
 void removeVertex(<wtGraphVertex> vertex)
           Removes a vertex from this graph.
 void unlinkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex)
           Unlinks two vertices.
 
Methods inherited from class wtObject
startProxy, endProxy, toString, connect, disconnect, emit, setSlot, removeSlot, setSignal, removeSignal, get, set, addDependency, clearLapsedListeners
 

Constructor Detail

wtGraph

wtGraph(<wtCanvas> parentCanvas)

Method Detail

addVertex

Object addVertex(<wtGraphVertex> vertex)

getCanvas

wtCanvas getCanvas()

getVertices

Object getVertices()

linkFromMouse

Object linkFromMouse(<wtGraphVertex> sourceVertex, <Class> edgeClass)

linkToMouse

Object linkToMouse(termVertex, <Class> edgeClass)

linkVertices

Object linkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex, <Class> edgeClass)

removeVertex

void removeVertex(<wtGraphVertex> vertex)

unlinkVertices

void unlinkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex)

WT Toolkit 0.3.3

Documentation generated by JSDoc on Sun May 13 11:26:24 2007