DiagramElement

class visigoth.common.DiagramElement
getHeight()

get the height of this element, in pixels

the build method will be invoked before this method is called

getWidth()

get the width of this element, in pixels

the build method will be invoked before this method is called

build()

perform any computation required to prepare for drawing, and finalize the element height and width

draw(d, cx, cy)

draw the element into the diagram at the specified coordinates

the build method will be invoked before this method is called

Parameters:
  • diagram – a visigoth.svg.svgdoc object
  • cx – x-coordinate of the center of the element
  • cy – y-coordinate of the center of the element