Package libxml2dom :: Module svg :: Class SVGPath
[show private | hide private]
[frames | no frames]

Class SVGPath


A path.
See: http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__SVGPath
See: http://www.w3.org/TR/SVGMobile12/paths.html

Method Summary
  __init__(self)
  __eq__(self, other)
  __ne__(self, other)
  close(self)
  curveTo(self, x1, y1, x2, y2, x3, y3)
  fromNode(self, node, name)
Initialise this object from the trait on the 'node' having the given 'name'.
  getSegment(self, cmdIndex)
  getSegmentParam(self, cmdIndex, paramIndex)
  lineTo(self, x, y)
  moveTo(self, x, y)
  quadTo(self, x1, y1, x2, y2)
  toNode(self, node, name)
Set the trait on the given 'node' using the given 'name' according to this object's attributes.
  _numberOfSegments(self)

Property Summary
  numberOfSegments

Class Variable Summary
int CLOSE = 90                                                                    
int CURVE_TO = 67                                                                    
int LINE_TO = 76                                                                    
int MOVE_TO = 77                                                                    
dict nparams = {67: 6, 76: 2, 77: 2, 81: 4, 122: 0, 90: 0}
int QUAD_TO = 81                                                                    
int _CLOSE = 122                                                                   

Method Details

fromNode(self, node, name)

Initialise this object from the trait on the 'node' having the given
'name'.

toNode(self, node, name)

Set the trait on the given 'node' using the given 'name' according to
this object's attributes.

Property Details

numberOfSegments

Get Method:
_numberOfSegments(self)

Class Variable Details

CLOSE

Type:
int
Value:
90                                                                    

CURVE_TO

Type:
int
Value:
67                                                                    

LINE_TO

Type:
int
Value:
76                                                                    

MOVE_TO

Type:
int
Value:
77                                                                    

nparams

Type:
dict
Value:
{67: 6, 76: 2, 77: 2, 81: 4, 122: 0, 90: 0}                            

QUAD_TO

Type:
int
Value:
81                                                                    

_CLOSE

Type:
int
Value:
122                                                                   

Generated by Epydoc 2.1 on Mon Mar 26 00:58:07 2007 http://epydoc.sf.net