Exemple #1
0
 def SVG(self, indent):
     attr = self.setSVG()
     nextIndent = indent + '    '
     if len(self) > 0:
         output = indent + '<' + self.name
         attributes = attributesToSVG(attr)
         if attributes != '':
             output += ' ' + attributes
         output += '>\n'
         output += self.childrenSVG(nextIndent)
         output += indent + '</' + self.name + '>\n'
     else:
         output = Element.SVG(self, indent)
     return output
Exemple #2
0
 def SVG (self, indent):
     attr = self.setSVG ()
     nextIndent = indent + '    '
     if len (self) > 0:
         output = indent + '<' + self.name
         attributes = attributesToSVG (attr)
         if attributes != '':
             output += ' ' + attributes
         output += '>\n'
         output += self.childrenSVG (nextIndent)
         output += indent + '</' + self.name + '>\n'
     else:
         output = Element.SVG (self, indent)
     return output     
Exemple #3
0
 def SVG(self, indent):
     attr = self.setSVG()
     nextIndent = indent + "    "
     if len(self) > 0:
         output = indent + "<" + self.name
         attributes = attributesToSVG(attr)
         if attributes != "":
             output += " " + attributes
         output += ">\n"
         output += self.childrenSVG(nextIndent)
         output += indent + "</" + self.name + ">\n"
     else:
         output = Element.SVG(self, indent)
     return output
Exemple #4
0
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + "<" + self.name + " " + attributesToSVG(attr) + " />\n"
Exemple #5
0
 def SVG (self, indent):
     attr = self.setSVG ()
     return indent + '<' + self.name + ' ' + attributesToSVG (attr) + ' />\n'
Exemple #6
0
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + '<' + self.name + ' ' + attributesToSVG(attr) + ' />\n'