Package Libs :: Module graphclass :: Class Vertex
[hide private]
[frames] | no frames]

Class Vertex

source code

Instance Methods [hide private]
  __init__(self, handler)
  __cmp__(self, other)
  addInAdj(self, edge)
  addOutAdj(self, edge, type)
type can be one of: Direct = 0 True = 1 False = 2
  getOutAdj(self)
  getInAdj(self)
  setName(self, name)
  getName(self)
  setLabel(self, label)
  getLabel(self)
  setVertexBuffer(self, buf)
  getVertexBuffer(self)
  setRelPos(self, x, y)
  getRelPos(self)
  setPlaced(self)
  isPlaced(self)
returns True if vertex was already placed into the plane
  calculateAbsoluteSize(self, text)
  getAbsoluteSize(self)
  getHeight(self)
  getWidth(self)
  getCoords(self)
  getY2(self)
  getX(self)
  getY(self)
  getX2(self)
  getCoordsWithMargin(self)
  setDrawn(self)
  isDrawn(self)
  moveNorth(self, value)
  moveSouth(self, value)
  moveEast(self, value)
  moveWest(self, value)
  placeVertex(self, x, y, text, textcolor, rectcolor, start)
  addEndPoint(x, y, color)
  setStartCoords(self, height, width)
  getStartCoords(self)

Method Details [hide private]

__init__(self, handler)
(Constructor)

source code 
None

__cmp__(self, other)
(Comparison operator)

source code 
None

addInAdj(self, edge)

source code 
None

addOutAdj(self, edge, type)

source code 
type can be one of: Direct = 0 True = 1 False = 2

getOutAdj(self)

source code 
None

getInAdj(self)

source code 
None

setName(self, name)

source code 
None

getName(self)

source code 
None

setLabel(self, label)

source code 
None

getLabel(self)

source code 
None

setVertexBuffer(self, buf)

source code 
None

getVertexBuffer(self)

source code 
None

setRelPos(self, x, y)

source code 
None

getRelPos(self)

source code 
None

setPlaced(self)

source code 
None

isPlaced(self)

source code 
returns True if vertex was already placed into the plane

calculateAbsoluteSize(self, text)

source code 
None

getAbsoluteSize(self)

source code 
None

getHeight(self)

source code 
None

getWidth(self)

source code 
None

getCoords(self)

source code 
None

getY2(self)

source code 
None

getX(self)

source code 
None

getY(self)

source code 
None

getX2(self)

source code 
None

getCoordsWithMargin(self)

source code 
None

setDrawn(self)

source code 
None

isDrawn(self)

source code 
None

moveNorth(self, value)

source code 
None

moveSouth(self, value)

source code 
None

moveEast(self, value)

source code 
None

moveWest(self, value)

source code 
None

placeVertex(self, x, y, text, textcolor, rectcolor, start)

source code 
None

addEndPoint(x, y, color)

source code 
None

setStartCoords(self, height, width)

source code 
None

getStartCoords(self)

source code 
None