Esempio n. 1
0
 def __init__(self, ownerDoc, x=None, y=None, z=None):
     BasicSvgNode.__init__(self, ownerDoc, 'fePointLight')
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self.setZ(z)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 2
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS,
                                       self.SVG_GROUP_ANIMATION_ELEMENTS)
Esempio n. 3
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
Esempio n. 4
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
Esempio n. 5
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     PresentationAttributes.__init__(self)
     FilterPrimitiveAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     
Esempio n. 6
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     PresentationAttributes.__init__(self)
     FilterPrimitiveAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     
Esempio n. 7
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_ANIMATION_ELEMENTS, self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 8
0
 def __init__(self, ownerDoc, x=None, y=None, z=None):
     BasicSvgNode.__init__(self, ownerDoc, 'fePointLight')
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self.setZ(z)
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 9
0
 def __init__(self, ownerDoc, x=None, y=None):
     BasicSvgNode.__init__(self, ownerDoc, 'cursor')
     ConditionalProcessingAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 10
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'glyphRef')
     PresentationAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     PositionAttributes.__init__(self)
     self._allowedSvgChildNodes.update({self.SVG_GLYPH_REF_NODE, self.SVG_ALT_GLYPH_ITEM_NODE})
Esempio n. 11
0
 def __init__(self, ownerDoc, x=None, y=None):
     BasicSvgNode.__init__(self, ownerDoc, 'cursor')
     ConditionalProcessingAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 12
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font')
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update({self.SVG_FONT_FACE_NODE, self.SVG_GLYPH_NODE, self.SVG_HKERN_NODE, self.SVG_MISSING_GLYPH_NODE, self.SVG_VKERN_NODE})
Esempio n. 13
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'path')
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_ANIMATION_ELEMENTS,
                                       self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 14
0
 def appendChild(self, node):
     
     if node.nodeType == Node.CDATA_SECTION_NODE:
         if len(self.childNodes) == 0:
             BasicSvgNode.appendChild(self, node)
         else:
             raise Exception('only one CDATA node can be present, use the getData and setData to change the data')
     else:
         raise Exception('only CDATA nodes can be added')
Esempio n. 15
0
 def __init__(self, ownerDoc, x=None, y=None, z=None, specularExponent=None, limitingConeAngle=None):
     BasicSvgNode.__init__(self, ownerDoc, 'feSpotLight')
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self.setZ(z)
     self.setSpecularExponent(specularExponent)
     self.setLimitingConeAngle(limitingConeAngle)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 16
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'foreignObject')
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     PositionAttributes.__init__(self)
     SizeAttributes.__init__(self)
     self.allowAllSvgNodesAsChildNodes = True
Esempio n. 17
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     PresentationAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_ANIMATE_TRANSFORM_NODE, self.SVG_SET_NODE, self.SVG_STOP_NODE})
Esempio n. 18
0
 def __init__(self, ownerDoc, offset=None, stopColor=None, stopOpacity=None, style=None):
     BasicSvgNode.__init__(self, ownerDoc, 'stop')
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_ANIMATE_COLOR_NODE, self.SVG_SET_NODE})
     self.setOffset(offset)
     self.setStopColor(stopColor)
     self.setStopOpacity(stopOpacity)
     self.setStyle(style)
Esempio n. 19
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'foreignObject')
     ConditionalProcessingAttributes.__init__(self)
     GraphicalEventAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     PositionAttributes.__init__(self)
     SizeAttributes.__init__(self)
     self.allowAllSvgNodesAsChildNodes= True
Esempio n. 20
0
 def __init__(self, ownerDoc, offset= None, stopColor= None, stopOpacity= None, style= None):
     BasicSvgNode.__init__(self, ownerDoc, 'stop')
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_ANIMATE_COLOR_NODE, self.SVG_SET_NODE})
     self.setOffset(offset)
     self.setStopColor(stopColor)
     self.setStopOpacity(stopOpacity)
     self.setStyle(style)
Esempio n. 21
0
    def appendChild(self, node):

        if node.nodeType == Node.CDATA_SECTION_NODE:
            if len(self.childNodes) == 0:
                BasicSvgNode.appendChild(self, node)
            else:
                raise Exception(
                    'only one CDATA node can be present, use the getData and setData to change the data'
                )
        else:
            raise Exception('only CDATA nodes can be added')
Esempio n. 22
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     PresentationAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_ANIMATE_TRANSFORM_NODE, self.SVG_SET_NODE, self.SVG_STOP_NODE})
Esempio n. 23
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'clipPath')
     ConditionalProcessingAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_ANIMATION_ELEMENTS, self.SVG_GROUP_DESCRIPTIVE_ELEMENTS,
                                       self.SVG_GROUP_SHAPE_ELEMENTS)
     #ad individual nodes
     self._allowedSvgChildNodes.update({self.SVG_TEXT_NODE, self.SVG_USE_NODE})
Esempio n. 24
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font')
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update({
         self.SVG_FONT_FACE_NODE, self.SVG_GLYPH_NODE, self.SVG_HKERN_NODE,
         self.SVG_MISSING_GLYPH_NODE, self.SVG_VKERN_NODE
     })
Esempio n. 25
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'filter')
     PresentationAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     PositionAttributes.__init__(self)
     SizeAttributes.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS, self.SVG_GROUP_FILTER_PRIMITIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 26
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'clipPath')
     ConditionalProcessingAttributes.__init__(self)
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_ANIMATION_ELEMENTS,
                                       self.SVG_GROUP_DESCRIPTIVE_ELEMENTS,
                                       self.SVG_GROUP_SHAPE_ELEMENTS)
     #ad individual nodes
     self._allowedSvgChildNodes.update(
         {self.SVG_TEXT_NODE, self.SVG_USE_NODE})
Esempio n. 27
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'filter')
     PresentationAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     PositionAttributes.__init__(self)
     SizeAttributes.__init__(self)
     #add groups
     self._allowedSvgChildNodes.update(
         self.SVG_GROUP_DESCRIPTIVE_ELEMENTS,
         self.SVG_GROUP_FILTER_PRIMITIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 28
0
 def __init__(self,
              ownerDoc,
              x=None,
              y=None,
              z=None,
              specularExponent=None,
              limitingConeAngle=None):
     BasicSvgNode.__init__(self, ownerDoc, 'feSpotLight')
     PositionAttributes.__init__(self)
     self.setX(x)
     self.setY(y)
     self.setZ(z)
     self.setSpecularExponent(specularExponent)
     self.setLimitingConeAngle(limitingConeAngle)
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 29
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     self.allowAllSvgNodesAsChildNodes = True
Esempio n. 30
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-format')
Esempio n. 31
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-uri')
     XlinkAttributes.__init__(self)
     self._allowedSvgChildNodes.add(self.SVG_FONT_FACE_FORMAT_NODE)
Esempio n. 32
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face')
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.add(self.SVG_FONT_FACE_SRC_NODE)
Esempio n. 33
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'altGlyphItem')
     self._allowedSvgChildNodes.add(self.SVG_GLYPH_REF_NODE)
     
Esempio n. 34
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'feMergeNode')
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 35
0
 def __init__(self, ownerDoc, azimuth=None, elevation=None):
     BasicSvgNode.__init__(self, ownerDoc, 'feDistantLight')
     self.setAzimuth(azimuth)
     self.setElevation(elevation)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 36
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-src')
     self._allowedSvgChildNodes.update({self.SVG_FONT_FACE_NAME_NODE, self.SVG_FONT_FACE_URI_NODE})
     
Esempio n. 37
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     ConditionalProcessingAttributes.__init__(self)
     XlinkAttributes.__init__(self)
     AnimationTimingAttributes.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 38
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'stop')
     PresentationAttributes.__init__(self)
     ClassAttribute.__init__(self)
     StyleAttribute.__init__(self)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_ANIMATE_COLOR_NODE, self.SVG_SET_NODE})
Esempio n. 39
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'feMergeNode')
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 40
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
Esempio n. 41
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face')
     #add groups
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
     #add individual nodes
     self._allowedSvgChildNodes.add(self.SVG_FONT_FACE_SRC_NODE)
Esempio n. 42
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
Esempio n. 43
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-src')
     self._allowedSvgChildNodes.update(
         {self.SVG_FONT_FACE_NAME_NODE, self.SVG_FONT_FACE_URI_NODE})
Esempio n. 44
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'vkern')
Esempio n. 45
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-format')
Esempio n. 46
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     TransferFunctionElementAttributes.__init__(self)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
     
     
Esempio n. 47
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'view')
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 48
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'mpath')
     XlinkAttributes.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 49
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     TransferFunctionElementAttributes.__init__(self)
     self._allowedSvgChildNodes.update(
         {self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 50
0
 def __init__(self, ownerDoc, tagName):
     BasicSvgNode.__init__(self, ownerDoc, tagName)
     self.allowAllSvgNodesAsChildNodes= True
Esempio n. 51
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'view')
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 52
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'metadata')
     self.allowAllSvgNodesAsChildNodes = True
     
Esempio n. 53
0
 def __init__(self, ownerDoc, azimuth=None, elevation=None):
     BasicSvgNode.__init__(self, ownerDoc, 'feDistantLight')
     self.setAzimuth(azimuth)
     self.setElevation(elevation)
     self._allowedSvgChildNodes.update({self.SVG_ANIMATE_NODE, self.SVG_SET_NODE})
Esempio n. 54
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'color-profile')
     XlinkAttributes.__init__(self)
     self._allowedSvgChildNodes.update(self.SVG_GROUP_DESCRIPTIVE_ELEMENTS)
Esempio n. 55
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'altGlyphDef')
     self._allowedSvgChildNodes.update(
         {self.SVG_GLYPH_REF_NODE, self.SVG_ALT_GLYPH_ITEM_NODE})
Esempio n. 56
0
 def __init__(self, ownerDoc):
     BasicSvgNode.__init__(self, ownerDoc, 'font-face-name')