|
WT Toolkit 0.3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--wtObject
|
+--wtGraph
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
|
| Constructor Detail |
wtGraph(<wtCanvas> parentCanvas)
parentCanvas - The container canvas.
| Method Detail |
Object addVertex(<wtGraphVertex> vertex)
vertex - The vertex to be added.
wtCanvas getCanvas()
Object getVertices()
Object linkFromMouse(<wtGraphVertex> sourceVertex, <Class> edgeClass)
sourceVertex - The source vertex.
edgeClass - (Optional) The edge class used for generating the new graph edge.
Object linkToMouse(termVertex, <Class> edgeClass)
edgeClass - (Optional) The edge class used for generating the new graph edge.
terminalVertex - The terminal vertex.
Object linkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex, <Class> edgeClass)
sourceVertex - The source vertex.
terminalVertex - The terminal vertex.
edgeClass - (Optional) The edge class used for generating the new graph edge.
void removeVertex(<wtGraphVertex> vertex)
vertex - The vertex to be removed.
void unlinkVertices(<wtGraphVertex> sourceVertex, <wtGraphVertex> terminalVertex)
sourceVertex - The source vertex.
terminalVertex - The terminal vertex.
|
WT Toolkit 0.3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||