org.apache.batik.dom.svg

Class SVGOMSVGElement

public class SVGOMSVGElement extends SVGStylableElement implements SVGSVGElement

This class implements {@link org.w3c.dom.svg.SVGSVGElement}.
Field Summary
protected static AttributeInitializerattributeInitializer
The attribute initializer.
protected SVGOMAnimatedBooleanexternalResourcesRequired
The 'externalResourcesRequired' attribute value.
protected SVGOMAnimatedLengthheight
The 'height' attribute value.
protected SVGOMAnimatedPreserveAspectRatiopreserveAspectRatio
The 'preserveAspectRatio' attribute value.
protected SVGOMAnimatedLengthwidth
The 'width' attribute value.
protected SVGOMAnimatedLengthx
The 'x' attribute value.
protected static DoublyIndexedTablexmlTraitInformation
Table mapping XML attribute names to TraitInformation objects.
protected SVGOMAnimatedLengthy
The 'y' attribute value.
Constructor Summary
protected SVGOMSVGElement()
Creates a new SVGOMSVGElement object.
SVGOMSVGElement(String prefix, AbstractDocument owner)
Creates a new SVGOMSVGElement object.
Method Summary
booleananimationsPaused()
DOM: Implements {@link SVGSVGElement#animationsPaused()}.
booleancanDispatch(String namespaceURI, String type)
DOM: Implements {@link org.w3c.dom.events.DocumentEvent#canDispatch(String,String)}.
booleancheckEnclosure(SVGElement element, SVGRect rect)
DOM: Implements {@link SVGSVGElement#checkEnclosure(SVGElement,SVGRect)}.
booleancheckIntersection(SVGElement element, SVGRect rect)
DOM: Implements {@link SVGSVGElement#checkIntersection(SVGElement,SVGRect)}.
EventcreateEvent(String eventType)
DOM: Implements {@link org.w3c.dom.events.DocumentEvent#createEvent(String)}.
SVGAnglecreateSVGAngle()
DOM: Implements {@link SVGSVGElement#createSVGAngle()}.
SVGLengthcreateSVGLength()
DOM: Implements {@link SVGSVGElement#createSVGLength()}.
SVGMatrixcreateSVGMatrix()
DOM: Implements {@link SVGSVGElement#createSVGMatrix()}.
SVGNumbercreateSVGNumber()
DOM: Implements {@link SVGSVGElement#createSVGNumber()}.
SVGPointcreateSVGPoint()
DOM: Implements {@link SVGSVGElement#createSVGPoint()}.
SVGRectcreateSVGRect()
DOM: Implements {@link SVGSVGElement#createSVGRect()}.
SVGTransformcreateSVGTransform()
DOM: Implements {@link SVGSVGElement#createSVGTransform()}.
SVGTransformcreateSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements {@link SVGSVGElement#createSVGTransformFromMatrix(SVGMatrix)}.
voiddeselectAll()
DOM: Implements {@link SVGSVGElement#deselectAll()}.
voidforceRedraw()
DOM: Implements {@link SVGSVGElement#forceRedraw()}.
protected AttributeInitializergetAttributeInitializer()
Returns the AttributeInitializer for this element type.
SVGRectgetBBox()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getBBox()}.
CSSStyleDeclarationgetComputedStyle(Element elt, String pseudoElt)
DOM: Implements {@link org.w3c.dom.css.ViewCSS#getComputedStyle(Element,String)}.
StringgetContentScriptType()
DOM: Implements {@link SVGSVGElement#getContentScriptType()}.
StringgetContentStyleType()
DOM: Implements {@link SVGSVGElement#getContentStyleType()}.
SVGMatrixgetCTM()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getCTM()}.
floatgetCurrentScale()
DOM: Implements {@link SVGSVGElement#getCurrentView()}.
floatgetCurrentTime()
DOM: Implements {@link SVGSVGElement#getCurrentTime()}.
SVGPointgetCurrentTranslate()
DOM: Implements {@link SVGSVGElement#getCurrentTranslate()}.
SVGViewSpecgetCurrentView()
DOM: Implements {@link SVGSVGElement#getCurrentView()}.
DocumentViewgetDocument()
DOM: Implements {@link org.w3c.dom.views.AbstractView#getDocument()}.
ElementgetElementById(String elementId)
DOM: Implements {@link SVGSVGElement#getElementById(String)}.
NodeListgetEnclosureList(SVGRect rect, SVGElement referenceElement)
DOM: Implements {@link SVGSVGElement#getEnclosureList(SVGRect,SVGElement)}.
SVGAnimatedBooleangetExternalResourcesRequired()
DOM: Implements {@link org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.
SVGElementgetFarthestViewportElement()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getFarthestViewportElement()}.
SVGAnimatedLengthgetHeight()
DOM: Implements {@link SVGSVGElement#getHeight()}.
NodeListgetIntersectionList(SVGRect rect, SVGElement referenceElement)
DOM: Implements {@link SVGSVGElement#getIntersectionList(SVGRect,SVGElement)}.
StringgetLocalName()
DOM: Implements {@link Node#getLocalName()}.
SVGElementgetNearestViewportElement()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getNearestViewportElement()}.
CSSStyleDeclarationgetOverrideStyle(Element elt, String pseudoElt)
DOM: Implements {@link org.w3c.dom.css.DocumentCSS#getOverrideStyle(Element,String)}.
floatgetPixelUnitToMillimeterX()
DOM: Implements {@link SVGSVGElement#getPixelUnitToMillimeterX()}.
floatgetPixelUnitToMillimeterY()
DOM: Implements {@link SVGSVGElement#getPixelUnitToMillimeterY()}.
SVGAnimatedPreserveAspectRatiogetPreserveAspectRatio()
DOM: Implements {@link org.w3c.dom.svg.SVGFitToViewBox#getPreserveAspectRatio()}.
SVGStringListgetRequiredExtensions()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredExtensions()}.
SVGStringListgetRequiredFeatures()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredFeatures()}.
SVGMatrixgetScreenCTM()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getScreenCTM()}.
floatgetScreenPixelToMillimeterX()
DOM: Implements {@link SVGSVGElement#getScreenPixelToMillimeterX()}.
floatgetScreenPixelToMillimeterY()
DOM: Implements {@link SVGSVGElement#getScreenPixelToMillimeterY()}.
StyleSheetListgetStyleSheets()
DOM: Implements {@link org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets()}.
SVGStringListgetSystemLanguage()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getSystemLanguage()}.
protected DoublyIndexedTablegetTraitInformationTable()
Returns the table of TraitInformation objects for this element.
SVGMatrixgetTransformToElement(SVGElement element)
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getTransformToElement(SVGElement)}.
booleangetUseCurrentView()
DOM: Implements {@link SVGSVGElement#getUseCurrentView()}.
SVGAnimatedRectgetViewBox()
DOM: Implements {@link org.w3c.dom.svg.SVGFitToViewBox#getViewBox()}.
SVGRectgetViewport()
DOM: Implements {@link SVGSVGElement#getViewport()}.
SVGAnimatedLengthgetWidth()
DOM: Implements {@link SVGSVGElement#getWidth()}.
SVGAnimatedLengthgetX()
DOM: Implements {@link SVGSVGElement#getX()}.
StringgetXMLlang()
DOM: Returns the xml:lang attribute value.
StringgetXMLspace()
DOM: Returns the xml:space attribute value.
SVGAnimatedLengthgetY()
DOM: Implements {@link SVGSVGElement#getY()}.
shortgetZoomAndPan()
DOM: Implements {@link org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan()}.
booleanhasExtension(String extension)
DOM: Implements {@link org.w3c.dom.svg.SVGTests#hasExtension(String)}.
protected voidinitializeAllLiveAttributes()
Initializes all live attributes for this element.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidpauseAnimations()
DOM: Implements {@link SVGSVGElement#pauseAnimations()}.
voidsetContentScriptType(String type)
DOM: Implements {@link SVGSVGElement#setContentScriptType(String)}.
voidsetContentStyleType(String type)
DOM: Implements {@link SVGSVGElement#setContentStyleType(String)}.
voidsetCurrentScale(float currentScale)
DOM: Implements {@link SVGSVGElement#setCurrentScale(float)}.
voidsetCurrentTime(float seconds)
DOM: Implements {@link SVGSVGElement#setCurrentTime(float)}.
voidsetUseCurrentView(boolean useCurrentView)
DOM: Implements {@link SVGSVGElement#setUseCurrentView(boolean)}.
voidsetXMLlang(String lang)
DOM: Sets the xml:lang attribute value.
voidsetXMLspace(String space)
DOM: Sets the xml:space attribute value.
voidsetZoomAndPan(short val)
DOM: Implements {@link org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan()}.
intsuspendRedraw(int max_wait_milliseconds)
DOM: Implements {@link SVGSVGElement#suspendRedraw(int)}.
voidunpauseAnimations()
DOM: Implements {@link SVGSVGElement#unpauseAnimations()}.
voidunsuspendRedraw(int suspend_handle_id)
DOM: Implements {@link SVGSVGElement#unsuspendRedraw(int)}.
voidunsuspendRedrawAll()
DOM: Implements {@link SVGSVGElement#unsuspendRedrawAll()}.

Field Detail

attributeInitializer

protected static final AttributeInitializer attributeInitializer
The attribute initializer.

externalResourcesRequired

protected SVGOMAnimatedBoolean externalResourcesRequired
The 'externalResourcesRequired' attribute value.

height

protected SVGOMAnimatedLength height
The 'height' attribute value.

preserveAspectRatio

protected SVGOMAnimatedPreserveAspectRatio preserveAspectRatio
The 'preserveAspectRatio' attribute value.

width

protected SVGOMAnimatedLength width
The 'width' attribute value.

x

protected SVGOMAnimatedLength x
The 'x' attribute value.

xmlTraitInformation

protected static DoublyIndexedTable xmlTraitInformation
Table mapping XML attribute names to TraitInformation objects.

y

protected SVGOMAnimatedLength y
The 'y' attribute value.

Constructor Detail

SVGOMSVGElement

protected SVGOMSVGElement()
Creates a new SVGOMSVGElement object.

SVGOMSVGElement

public SVGOMSVGElement(String prefix, AbstractDocument owner)
Creates a new SVGOMSVGElement object.

Parameters: prefix The namespace prefix. owner The owner document.

Method Detail

animationsPaused

public boolean animationsPaused()
DOM: Implements {@link SVGSVGElement#animationsPaused()}.

canDispatch

public boolean canDispatch(String namespaceURI, String type)
DOM: Implements {@link org.w3c.dom.events.DocumentEvent#canDispatch(String,String)}.

checkEnclosure

public boolean checkEnclosure(SVGElement element, SVGRect rect)
DOM: Implements {@link SVGSVGElement#checkEnclosure(SVGElement,SVGRect)}.

checkIntersection

public boolean checkIntersection(SVGElement element, SVGRect rect)
DOM: Implements {@link SVGSVGElement#checkIntersection(SVGElement,SVGRect)}.

createEvent

public Event createEvent(String eventType)
DOM: Implements {@link org.w3c.dom.events.DocumentEvent#createEvent(String)}.

createSVGAngle

public SVGAngle createSVGAngle()
DOM: Implements {@link SVGSVGElement#createSVGAngle()}.

createSVGLength

public SVGLength createSVGLength()
DOM: Implements {@link SVGSVGElement#createSVGLength()}.

createSVGMatrix

public SVGMatrix createSVGMatrix()
DOM: Implements {@link SVGSVGElement#createSVGMatrix()}.

createSVGNumber

public SVGNumber createSVGNumber()
DOM: Implements {@link SVGSVGElement#createSVGNumber()}.

createSVGPoint

public SVGPoint createSVGPoint()
DOM: Implements {@link SVGSVGElement#createSVGPoint()}.

createSVGRect

public SVGRect createSVGRect()
DOM: Implements {@link SVGSVGElement#createSVGRect()}.

createSVGTransform

public SVGTransform createSVGTransform()
DOM: Implements {@link SVGSVGElement#createSVGTransform()}.

createSVGTransformFromMatrix

public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements {@link SVGSVGElement#createSVGTransformFromMatrix(SVGMatrix)}.

deselectAll

public void deselectAll()
DOM: Implements {@link SVGSVGElement#deselectAll()}.

forceRedraw

public void forceRedraw()
DOM: Implements {@link SVGSVGElement#forceRedraw()}.

getAttributeInitializer

protected AttributeInitializer getAttributeInitializer()
Returns the AttributeInitializer for this element type.

Returns: null if this element has no attribute with a default value.

getBBox

public SVGRect getBBox()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getBBox()}.

getComputedStyle

public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt)
DOM: Implements {@link org.w3c.dom.css.ViewCSS#getComputedStyle(Element,String)}.

getContentScriptType

public String getContentScriptType()
DOM: Implements {@link SVGSVGElement#getContentScriptType()}.

getContentStyleType

public String getContentStyleType()
DOM: Implements {@link SVGSVGElement#getContentStyleType()}.

getCTM

public SVGMatrix getCTM()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getCTM()}.

getCurrentScale

public float getCurrentScale()
DOM: Implements {@link SVGSVGElement#getCurrentView()}.

getCurrentTime

public float getCurrentTime()
DOM: Implements {@link SVGSVGElement#getCurrentTime()}.

getCurrentTranslate

public SVGPoint getCurrentTranslate()
DOM: Implements {@link SVGSVGElement#getCurrentTranslate()}.

getCurrentView

public SVGViewSpec getCurrentView()
DOM: Implements {@link SVGSVGElement#getCurrentView()}.

getDocument

public DocumentView getDocument()
DOM: Implements {@link org.w3c.dom.views.AbstractView#getDocument()}.

getElementById

public Element getElementById(String elementId)
DOM: Implements {@link SVGSVGElement#getElementById(String)}.

getEnclosureList

public NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement)
DOM: Implements {@link SVGSVGElement#getEnclosureList(SVGRect,SVGElement)}.

getExternalResourcesRequired

public SVGAnimatedBoolean getExternalResourcesRequired()
DOM: Implements {@link org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.

getFarthestViewportElement

public SVGElement getFarthestViewportElement()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getFarthestViewportElement()}.

getHeight

public SVGAnimatedLength getHeight()
DOM: Implements {@link SVGSVGElement#getHeight()}.

getIntersectionList

public NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement)
DOM: Implements {@link SVGSVGElement#getIntersectionList(SVGRect,SVGElement)}.

getLocalName

public String getLocalName()
DOM: Implements {@link Node#getLocalName()}.

getNearestViewportElement

public SVGElement getNearestViewportElement()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getNearestViewportElement()}.

getOverrideStyle

public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt)
DOM: Implements {@link org.w3c.dom.css.DocumentCSS#getOverrideStyle(Element,String)}.

getPixelUnitToMillimeterX

public float getPixelUnitToMillimeterX()
DOM: Implements {@link SVGSVGElement#getPixelUnitToMillimeterX()}.

getPixelUnitToMillimeterY

public float getPixelUnitToMillimeterY()
DOM: Implements {@link SVGSVGElement#getPixelUnitToMillimeterY()}.

getPreserveAspectRatio

public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
DOM: Implements {@link org.w3c.dom.svg.SVGFitToViewBox#getPreserveAspectRatio()}.

getRequiredExtensions

public SVGStringList getRequiredExtensions()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredExtensions()}.

getRequiredFeatures

public SVGStringList getRequiredFeatures()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredFeatures()}.

getScreenCTM

public SVGMatrix getScreenCTM()
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getScreenCTM()}.

getScreenPixelToMillimeterX

public float getScreenPixelToMillimeterX()
DOM: Implements {@link SVGSVGElement#getScreenPixelToMillimeterX()}.

getScreenPixelToMillimeterY

public float getScreenPixelToMillimeterY()
DOM: Implements {@link SVGSVGElement#getScreenPixelToMillimeterY()}.

getStyleSheets

public StyleSheetList getStyleSheets()
DOM: Implements {@link org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets()}.

getSystemLanguage

public SVGStringList getSystemLanguage()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getSystemLanguage()}.

getTraitInformationTable

protected DoublyIndexedTable getTraitInformationTable()
Returns the table of TraitInformation objects for this element.

getTransformToElement

public SVGMatrix getTransformToElement(SVGElement element)
DOM: Implements {@link org.w3c.dom.svg.SVGLocatable#getTransformToElement(SVGElement)}.

getUseCurrentView

public boolean getUseCurrentView()
DOM: Implements {@link SVGSVGElement#getUseCurrentView()}.

getViewBox

public SVGAnimatedRect getViewBox()
DOM: Implements {@link org.w3c.dom.svg.SVGFitToViewBox#getViewBox()}.

getViewport

public SVGRect getViewport()
DOM: Implements {@link SVGSVGElement#getViewport()}.

getWidth

public SVGAnimatedLength getWidth()
DOM: Implements {@link SVGSVGElement#getWidth()}.

getX

public SVGAnimatedLength getX()
DOM: Implements {@link SVGSVGElement#getX()}.

getXMLlang

public String getXMLlang()
DOM: Returns the xml:lang attribute value.

getXMLspace

public String getXMLspace()
DOM: Returns the xml:space attribute value.

getY

public SVGAnimatedLength getY()
DOM: Implements {@link SVGSVGElement#getY()}.

getZoomAndPan

public short getZoomAndPan()
DOM: Implements {@link org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan()}.

hasExtension

public boolean hasExtension(String extension)
DOM: Implements {@link org.w3c.dom.svg.SVGTests#hasExtension(String)}.

initializeAllLiveAttributes

protected void initializeAllLiveAttributes()
Initializes all live attributes for this element.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

pauseAnimations

public void pauseAnimations()
DOM: Implements {@link SVGSVGElement#pauseAnimations()}.

setContentScriptType

public void setContentScriptType(String type)
DOM: Implements {@link SVGSVGElement#setContentScriptType(String)}.

setContentStyleType

public void setContentStyleType(String type)
DOM: Implements {@link SVGSVGElement#setContentStyleType(String)}.

setCurrentScale

public void setCurrentScale(float currentScale)
DOM: Implements {@link SVGSVGElement#setCurrentScale(float)}.

setCurrentTime

public void setCurrentTime(float seconds)
DOM: Implements {@link SVGSVGElement#setCurrentTime(float)}.

setUseCurrentView

public void setUseCurrentView(boolean useCurrentView)
DOM: Implements {@link SVGSVGElement#setUseCurrentView(boolean)}.

setXMLlang

public void setXMLlang(String lang)
DOM: Sets the xml:lang attribute value.

setXMLspace

public void setXMLspace(String space)
DOM: Sets the xml:space attribute value.

setZoomAndPan

public void setZoomAndPan(short val)
DOM: Implements {@link org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan()}.

suspendRedraw

public int suspendRedraw(int max_wait_milliseconds)
DOM: Implements {@link SVGSVGElement#suspendRedraw(int)}.

unpauseAnimations

public void unpauseAnimations()
DOM: Implements {@link SVGSVGElement#unpauseAnimations()}.

unsuspendRedraw

public void unsuspendRedraw(int suspend_handle_id)
DOM: Implements {@link SVGSVGElement#unsuspendRedraw(int)}.

unsuspendRedrawAll

public void unsuspendRedrawAll()
DOM: Implements {@link SVGSVGElement#unsuspendRedrawAll()}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.