smithers.svg
Class SVGElementByCode

java.lang.Object
  extended by smithers.svg.SVGElementByCode
All Implemented Interfaces:
SVGElement

public class SVGElementByCode
extends java.lang.Object
implements SVGElement

Represents an element of a Scalable Vector Graphics (SVG) image purely by the code which generates it.


Constructor Summary
SVGElementByCode(java.lang.String code)
          Creates a new SVGElementByCode from the code.
SVGElementByCode(SVGElement e)
          Creates a new SVGElementByCode from an existing SVGElement
 
Method Summary
 java.lang.String getCode()
          Returns the code used to generate this element in an SVG file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGElementByCode

public SVGElementByCode(java.lang.String code)
Creates a new SVGElementByCode from the code.

Parameters:
code - the code

SVGElementByCode

public SVGElementByCode(SVGElement e)
Creates a new SVGElementByCode from an existing SVGElement

Parameters:
e - the element to copy the code from
Method Detail

getCode

public java.lang.String getCode()
Returns the code used to generate this element in an SVG file.

Specified by:
getCode in interface SVGElement
Returns:
the code