|
WT Toolkit 0.3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--wtObject
|
+--wtGraphVertex
A G=(V,E) graph vertex.
Available signals:
| Constructor Summary | |
wtGraphVertex(<wtCanvas|wtGraph> parentContainer, <wtWidget> peerWidget)
Constructs a G=(V,E) graph vertex from a wtWidget. |
|
| Method Summary | |
void
|
addAnchorPoint(<wt2DPoint> point)
Adds an anchor point around this vertex. |
void
|
clearAnchorPoints()
Clears all the anchor points of this vertex. |
void
|
generateAnchorPoints()
Generates the anchor points around the peer widget for connecting to edges. |
wt2DPoint
|
getAbsolutePosition()
Tells the top-left corner position of the peer widget relative to its parent container. |
Array
|
getAnchorPoints()
Tells all the current anchor points associated with this vertex. |
wt2DPoint
|
getCenterPoint()
Tells the center point of the peer widget relative to its parent container. |
wt2DPoint
|
getClosestAnchorPoint(point)
Tells the closest anchor point to a specified point in the parent container's coordinate system. |
Array
|
getEdgesFromVertex(vertex)
Tells the incoming edges from a specific vertex. |
Array
|
getEdgesToVertex(vertex)
Tells the outgoing edges to a specific vertex. |
Array
|
getInEdges()
Tells the incoming edges to this vertex in an array. |
Array
|
getInVertices()
Tells the vertices connected to this vertex via incoming edges. |
Array
|
getOutEdges()
Tells the outgoing edges from this vertex in an array. |
Array
|
getOutVertices()
Tells the vertices connected to this vertex via outgoing edges. |
wtWidget
|
getPeerWidget()
Tells the peer widget associated with this vertex. |
Object
|
removeAnchorPoint(<Integer> idx)
Removes one of the anchor points from the anchor point array. |
void
|
removeSelf()
Removes this vertex, the associated peer widget, and all edges connected to and from this vertex. |
| Methods inherited from class wtObject |
startProxy, endProxy, toString, connect, disconnect, emit, setSlot, removeSlot, setSignal, removeSignal, get, set, addDependency, clearLapsedListeners
|
| Constructor Detail |
wtGraphVertex(<wtCanvas|wtGraph> parentContainer, <wtWidget> peerWidget)
parentContainer - The parent container of this vertex.
peerWidget - The widget to be associated with this graph vertex.
| Method Detail |
void addAnchorPoint(<wt2DPoint> point)
point - New anchor point for connecting to edges.
void clearAnchorPoints()
void generateAnchorPoints()
wt2DPoint getAbsolutePosition()
Array getAnchorPoints()
wt2DPoint getCenterPoint()
wt2DPoint getClosestAnchorPoint(point)
Array getEdgesFromVertex(vertex)
Array getEdgesToVertex(vertex)
Array getInEdges()
Array getInVertices()
Array getOutEdges()
Array getOutVertices()
wtWidget getPeerWidget()
Object removeAnchorPoint(<Integer> idx)
idx - Array index of the anchor point to be removed.
void removeSelf()
|
WT Toolkit 0.3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||