TPTP 4.2.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended byorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
All Implemented Interfaces:
ISVGBase, java.io.Serializable
Direct Known Subclasses:
SVGContainerBase, SVGDesc, SVGGraphicBase, SVGScript, SVGSetBase, SVGTitle

public abstract class SVGBase
extends java.lang.Object
implements ISVGBase, java.io.Serializable

SVGBase is an abstract base class for classes which implement Scalable Vector Graphics (SVG) graphics as Document Object Model (DOM) objects. Applicable to SVG graphics elements which support the common set of SVG attributes implemented here. $Revision: 1.1 $

See Also:
Serialized Form

Constructor Summary
SVGBase()
           
 
Method Summary
protected  org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument)
          Creates the Document Object Model (DOM) implementation of the SVG element specified in tagName and sets any non-null attributes.
 java.lang.String getIdentifier()
          Returns the identifier.
abstract  org.w3c.dom.Element getImplementation()
          Returns the implementation element.
 java.lang.String getStyle()
          Returns the style.
 java.lang.String getStyleClass()
          Returns the style class.
protected  java.lang.String getTagName()
          Returns the tag name for the element.
 java.lang.String getVisibility()
          Returns the visiblity setting.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier for the element.
 void setStyle(java.lang.String style)
          Sets the style for the element.
 void setStyleClass(java.lang.String styleClass)
          Sets the style class for the element.
protected  void setTagName(java.lang.String tagName)
          Sets the tag name for the element.
 void setVisibility(java.lang.String visibility)
          Sets the visibility setting for the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGBase

public SVGBase()
Method Detail

doImplementation

protected org.w3c.dom.Element doImplementation(org.w3c.dom.Document svgDocument)
                                        throws org.w3c.dom.DOMException
Creates the Document Object Model (DOM) implementation of the SVG element specified in tagName and sets any non-null attributes. Overriding classes should return null if any required attributes for the particular SVG element are missing.

Returns:
Element the implementation element or null if tagName is null.
Throws:
DOMExcepton - if the tag name contains an illegal character.
org.w3c.dom.DOMException

getTagName

protected java.lang.String getTagName()
Returns the tag name for the element.

Returns:
String

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: ISVGBase
Returns the identifier.

Specified by:
getIdentifier in interface ISVGBase
Returns:
String
See Also:
ISVGBase.getIdentifier()

getStyle

public java.lang.String getStyle()
Description copied from interface: ISVGBase
Returns the style.

Specified by:
getStyle in interface ISVGBase
Returns:
String
See Also:
ISVGBase.getStyle()

getStyleClass

public java.lang.String getStyleClass()
Description copied from interface: ISVGBase
Returns the style class.

Specified by:
getStyleClass in interface ISVGBase
Returns:
String
See Also:
ISVGBase.getStyleClass()

getVisibility

public java.lang.String getVisibility()
Description copied from interface: ISVGBase
Returns the visiblity setting.

Specified by:
getVisibility in interface ISVGBase
Returns:
visibility setting
See Also:
org.eclipse.tptp.platform.report.chart.svg.internal.generator.svg.ISVGBase#getVisibility()

setTagName

protected void setTagName(java.lang.String tagName)
Sets the tag name for the element.

Parameters:
tagName - The tagName to set

setIdentifier

public void setIdentifier(java.lang.String identifier)
Description copied from interface: ISVGBase
Sets the identifier for the element.

Specified by:
setIdentifier in interface ISVGBase
Parameters:
identifier - The identifier to set.
See Also:
ISVGBase#setIdentifier()

setStyle

public void setStyle(java.lang.String style)
Description copied from interface: ISVGBase
Sets the style for the element.

Specified by:
setStyle in interface ISVGBase
Parameters:
style - The style to set.
See Also:
ISVGBase#setStyle()

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Description copied from interface: ISVGBase
Sets the style class for the element.

Specified by:
setStyleClass in interface ISVGBase
Parameters:
styleClass - The styleClass to set.
See Also:
ISVGBase#setStyleClass()

setVisibility

public void setVisibility(java.lang.String visibility)
Description copied from interface: ISVGBase
Sets the visibility setting for the element.

Specified by:
setVisibility in interface ISVGBase
Parameters:
visibility - Visibility setting
See Also:
org.eclipse.tptp.platform.report.chart.svg.internal.generator.svg.ISVGBase#setVisibility(java.lang.String)

getImplementation

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

Specified by:
getImplementation in interface ISVGBase
Returns:
Element
See Also:
ISVGBase.getImplementation()

TPTP 4.2.0 Platform Project
Internal API Specification