TPTP 4.2.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.svg.internal.generator
Class SVGSvg

java.lang.Object
  extended byorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
      extended byorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase
          extended byorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase
              extended byorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGSvg
All Implemented Interfaces:
ISVGBase, ISVGContainerBase, ISVGDocumentFragmentBase, java.io.Serializable
Direct Known Subclasses:
Part

public class SVGSvg
extends SVGDocumentFragmentBase
implements java.io.Serializable

SVGSvg is an implementation class for Scalable Vector Graphics (SVG) "svg" elements. $Revision: 1.2 $

See Also:
Serialized Form

Constructor Summary
SVGSvg()
          Sole constructor.
 
Method Summary
 void addDefinition(org.w3c.dom.Element newDefinition)
          Add a new definition
 void addDefinition(SVGBase newDefinition)
          Add a new definition
 void addStyle(SVGBase newDefinition)
          Add a new Style
 org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument)
          Calls the superclass to create the SVG container element and then sets any non-null base attributes.
 org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument, java.lang.String width, java.lang.String height)
          Creates the Document Object Model (DOM) implementation of the SVG "svg" element
 org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument, java.lang.String width, java.lang.String height, java.lang.String viewbox, java.lang.String preserveAspectRatio)
          Creates the Document Object Model (DOM) implementation of the SVG "svg" element
 org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument, java.lang.String width, java.lang.String height, java.lang.String viewbox, java.lang.String preserveAspectRatio, java.lang.String x, java.lang.String y)
          Creates the Document Object Model (DOM) implementation of the SVG "svg" element
 org.w3c.dom.Element getImplementation()
          Returns the implementation element.
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase
getHeight, getPreserveAspectRatio, getViewbox, getWidth, getXCoordinate, getYCoordinate, setHeight, setPreserveAspectRatio, setViewbox, setWidth, setXCoordinate, setYCoordinate
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase
getChildren, getDesc, getTitle, setChildren, setDesc, setTitle
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
getIdentifier, getStyle, getStyleClass, getTagName, getVisibility, setIdentifier, setStyle, setStyleClass, setTagName, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGSvg

public SVGSvg()
Sole constructor.

Method Detail

doImplementation

public org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument)
                                     throws java.lang.NullPointerException
Description copied from class: SVGDocumentFragmentBase
Calls the superclass to create the SVG container element and then sets any non-null base attributes.

Overrides:
doImplementation in class SVGDocumentFragmentBase
Returns:
Element the implementation element or null if the element was not created.
Throws:
java.lang.NullPointerException - if any specified contained elements are null.

doImplementation

public org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument,
                                            java.lang.String width,
                                            java.lang.String height)
                                     throws java.lang.NullPointerException
Creates the Document Object Model (DOM) implementation of the SVG "svg" element

Returns:
Element the implementation.
Throws:
java.lang.NullPointerException

doImplementation

public org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument,
                                            java.lang.String width,
                                            java.lang.String height,
                                            java.lang.String viewbox,
                                            java.lang.String preserveAspectRatio)
                                     throws java.lang.NullPointerException
Creates the Document Object Model (DOM) implementation of the SVG "svg" element

Returns:
Element the implementation.
Throws:
java.lang.NullPointerException

doImplementation

public org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument,
                                            java.lang.String width,
                                            java.lang.String height,
                                            java.lang.String viewbox,
                                            java.lang.String preserveAspectRatio,
                                            java.lang.String x,
                                            java.lang.String y)
                                     throws java.lang.NullPointerException
Creates the Document Object Model (DOM) implementation of the SVG "svg" element

Returns:
Element the implementation.
Throws:
java.lang.NullPointerException

getImplementation

public org.w3c.dom.Element getImplementation()
Description copied from interface: ISVGBase
Returns the implementation element.

Specified by:
getImplementation in interface ISVGBase
Specified by:
getImplementation in class SVGBase
See Also:
org.eclipse.tptp.platform.report.chart.svg.internal.generator.svg.SVGBase#getImplementation()

addDefinition

public void addDefinition(SVGBase newDefinition)
Add a new definition

Parameters:
newDefinition -

addDefinition

public void addDefinition(org.w3c.dom.Element newDefinition)
Add a new definition

Parameters:
newDefinition -

addStyle

public void addStyle(SVGBase newDefinition)
Add a new Style


TPTP 4.2.0 Platform Project
Internal API Specification