Module Svg :: Class SvgHandler
[hide private]
[frames] | no frames]

Class SvgHandler

source code

xml.sax.handler.ContentHandler --+
                                 |
                                SvgHandler

Instance Methods [hide private]
 
__init__(self, drawBoard, cache) source code
 
startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
source code
 
endElement(self, name)
Signals the end of an element in non-namespace mode.
source code
 
startG(self, attrs) source code
 
endG(self) source code
 
startDefs(self, attrs) source code
 
endDefs(self) source code
 
startMarker(self, attrs) source code
 
endMarker(self) source code
 
context(self) source code
 
style(self) source code
 
transform(self) source code
 
startPath(self, attrs) source code
 
createLinearGradient(self, attrs, keys) source code
 
createRadialGradient(self, attrs, keys) source code
 
startLineargradient(self, attrs) source code
 
startRadialgradient(self, attrs) source code
 
parseKeys(self, stops) source code
 
endLineargradient(self) source code
 
endRadialgradient(self) source code
 
startStop(self, attrs) source code

Inherited from xml.sax.handler.ContentHandler: characters, endDocument, endElementNS, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElementNS, startPrefixMapping

Method Details [hide private]

__init__(self, drawBoard, cache)
(Constructor)

source code 
Overrides: xml.sax.handler.ContentHandler.__init__

startElement(self, name, attrs)

source code 

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.
Overrides: xml.sax.handler.ContentHandler.startElement
(inherited documentation)

endElement(self, name)

source code 

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.
Overrides: xml.sax.handler.ContentHandler.endElement
(inherited documentation)