Package pySVG :: Module pysvg :: Class path
[hide private]
[frames] | no frames]

Class path

source code

BaseElement --+
              |
             path

Instance Methods [hide private]
 
__init__(self, pathData="", pathLength=None, style_dict=None, focusable=None)
initializes the object
source code
 
__append__(self, command, params, relative=True) source code
 
appendLineToPath(self, endx, endy, relative=True) source code
 
appendHorizontalLineToPath(self, endx, relative=True) source code
 
appendVerticalLineToPath(self, endy, relative=True) source code
 
appendMoveToPath(self, endx, endy, relative=True) source code
 
appendCloseCurve(self) source code
 
appendCubicCurveToPath(self, controlstartx, controlstarty, controlendx, controlendy, endx, endy, relative=True) source code
 
appendCubicShorthandCurveToPath(self, controlendx, controlendy, endx, endy, relative=True) source code
 
appendQuadraticCurveToPath(self, controlx, controly, endx, endy, relative=True) source code
 
appendQuadraticShorthandCurveToPath(self, endx, endy, relative=True) source code
 
appendArcToPath(self, rx, ry, x, y, x_axis_rotation=0, large_arc_flag=0, sweep_flag=1, relative=True) source code
 
getXML(self)
Return a XML representation of the current element.
source code

Inherited from BaseElement: getXMLFromStyle

Method Details [hide private]

__init__(self, pathData="", pathLength=None, style_dict=None, focusable=None)
(Constructor)

source code 

initializes the object

Parameters:
  • startTag - the tag for the svg element name (e.g. <text )
  • style_dict - the style to use for this element
  • focusable - ??
Overrides: BaseElement.__init__
(inherited documentation)

getXML(self)

source code 

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

Returns:
the representation of the current element as an xml string
Overrides: BaseElement.getXML