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

Module pysvg

source code


License:
Copyright (c) 2008 Kerim Mansour
All rights reserved.

COMMERCIAL USAGE:
Commercial usage is understood as usage in order to make a profit or in a corporate environment.
For commercial usage please contact kmansour ATT web DOT de

NONCOMMERCIAL USAGE:
The following license applies to NONCOMMERCIAL usage of the software. 
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation 
      and/or other materials provided with the distribution.
    * Neither the name of the author nor the names of other contributors 
      may be used to endorse or promote products derived from this software without 
      specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Classes [hide private]
  SVG
Base class for a SVG document
  BaseElement
This is the base class for all svg elements like elipses, texts, lines etc.
  Group
Base class for a container element.
  Defs
This class packs all definitions
  LinearGradient
  stop
  line
Class representing the line element of an svg doc.
  ellipse
Class representing the ellipse element of an svg doc.
  rect
Class representing the rect element of an svg doc.
  circle
Class representing the cirle element of an svg doc.
  polyline
Class representing the polyline element of an svg doc.
  polygon
  text
Class representing the text element of an svg doc.
  path
Functions [hide private]
 
getXML(self)
Return a XML representation of the current element.
source code
Variables [hide private]
  SVG_HEADER = '''<?xml version="1.0" encoding="UTF-8...
  SVG_FOOTER = '</svg>'
  END_TAG_LINE = '>\n'
Function Details [hide private]

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

Variables Details [hide private]

SVG_HEADER

Value:
'''<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org\
/1999/xlink" '''