WT Toolkit 0.3.2

Class wtGraphVertex

Object
   |
   +--wtObject
         |
         +--wtGraphVertex

class wtGraphVertex
extends wtObject


A G=(V,E) graph vertex.

Available signals:


Defined in wt_vector.js


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
 

Constructor Detail

wtGraphVertex

wtGraphVertex(<wtCanvas|wtGraph> parentContainer, <wtWidget> peerWidget)

Method Detail

addAnchorPoint

void addAnchorPoint(<wt2DPoint> point)

clearAnchorPoints

void clearAnchorPoints()

generateAnchorPoints

void generateAnchorPoints()

getAbsolutePosition

wt2DPoint getAbsolutePosition()

getAnchorPoints

Array getAnchorPoints()

getCenterPoint

wt2DPoint getCenterPoint()

getClosestAnchorPoint

wt2DPoint getClosestAnchorPoint(point)

getEdgesFromVertex

Array getEdgesFromVertex(vertex)

getEdgesToVertex

Array getEdgesToVertex(vertex)

getInEdges

Array getInEdges()

getInVertices

Array getInVertices()

getOutEdges

Array getOutEdges()

getOutVertices

Array getOutVertices()

getPeerWidget

wtWidget getPeerWidget()

removeAnchorPoint

Object removeAnchorPoint(<Integer> idx)

removeSelf

void removeSelf()

WT Toolkit 0.3.2

Documentation generated by JSDoc on Tue Apr 10 22:43:45 2007