org.apache.batik.dom.svg

Class SVGOMSVGElement

public class SVGOMSVGElement extends SVGStylableElement implements SVGSVGElement

This class implements 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 SVGOMAnimatedRectviewBox
The 'viewBox' 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 SVGSVGElement#animationsPaused().
booleancanDispatch(String namespaceURI, String type)
DOM: Implements canDispatch.
booleancheckEnclosure(SVGElement element, SVGRect rect)
DOM: Implements SVGSVGElement#checkEnclosure(SVGElement,SVGRect).
booleancheckIntersection(SVGElement element, SVGRect rect)
DOM: Implements SVGSVGElement#checkIntersection(SVGElement,SVGRect).
EventcreateEvent(String eventType)
DOM: Implements createEvent.
SVGAnglecreateSVGAngle()
DOM: Implements SVGSVGElement#createSVGAngle().
SVGLengthcreateSVGLength()
DOM: Implements SVGSVGElement#createSVGLength().
SVGMatrixcreateSVGMatrix()
DOM: Implements SVGSVGElement#createSVGMatrix().
SVGNumbercreateSVGNumber()
DOM: Implements SVGSVGElement#createSVGNumber().
SVGPointcreateSVGPoint()
DOM: Implements SVGSVGElement#createSVGPoint().
SVGRectcreateSVGRect()
DOM: Implements SVGSVGElement#createSVGRect().
SVGTransformcreateSVGTransform()
DOM: Implements SVGSVGElement#createSVGTransform().
SVGTransformcreateSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGSVGElement#createSVGTransformFromMatrix(SVGMatrix).
voiddeselectAll()
DOM: Implements SVGSVGElement#deselectAll().
voidforceRedraw()
DOM: Implements SVGSVGElement#forceRedraw().
protected AttributeInitializergetAttributeInitializer()
Returns the AttributeInitializer for this element type.
SVGRectgetBBox()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getBBox().
CSSStyleDeclarationgetComputedStyle(Element elt, String pseudoElt)
DOM: Implements org.w3c.dom.css.ViewCSS#getComputedStyle(Element,String).
StringgetContentScriptType()
DOM: Implements SVGSVGElement#getContentScriptType().
StringgetContentStyleType()
DOM: Implements SVGSVGElement#getContentStyleType().
SVGMatrixgetCTM()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getCTM().
floatgetCurrentScale()
DOM: Implements SVGSVGElement#getCurrentView().
floatgetCurrentTime()
DOM: Implements SVGSVGElement#getCurrentTime().
SVGPointgetCurrentTranslate()
DOM: Implements SVGSVGElement#getCurrentTranslate().
SVGViewSpecgetCurrentView()
DOM: Implements SVGSVGElement#getCurrentView().
DocumentViewgetDocument()
DOM: Implements org.w3c.dom.views.AbstractView#getDocument().
ElementgetElementById(String elementId)
DOM: Implements SVGSVGElement#getElementById(String).
NodeListgetEnclosureList(SVGRect rect, SVGElement referenceElement)
DOM: Implements SVGSVGElement#getEnclosureList(SVGRect,SVGElement).
SVGAnimatedBooleangetExternalResourcesRequired()
DOM: Implements org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired().
SVGElementgetFarthestViewportElement()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getFarthestViewportElement().
SVGAnimatedLengthgetHeight()
DOM: Implements SVGSVGElement#getHeight().
NodeListgetIntersectionList(SVGRect rect, SVGElement referenceElement)
DOM: Implements SVGSVGElement#getIntersectionList(SVGRect,SVGElement).
StringgetLocalName()
DOM: Implements Node#getLocalName().
SVGElementgetNearestViewportElement()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getNearestViewportElement().
CSSStyleDeclarationgetOverrideStyle(Element elt, String pseudoElt)
DOM: Implements org.w3c.dom.css.DocumentCSS#getOverrideStyle(Element,String).
floatgetPixelUnitToMillimeterX()
DOM: Implements SVGSVGElement#getPixelUnitToMillimeterX().
floatgetPixelUnitToMillimeterY()
DOM: Implements SVGSVGElement#getPixelUnitToMillimeterY().
SVGAnimatedPreserveAspectRatiogetPreserveAspectRatio()
DOM: Implements org.w3c.dom.svg.SVGFitToViewBox#getPreserveAspectRatio().
SVGStringListgetRequiredExtensions()
DOM: Implements org.w3c.dom.svg.SVGTests#getRequiredExtensions().
SVGStringListgetRequiredFeatures()
DOM: Implements org.w3c.dom.svg.SVGTests#getRequiredFeatures().
SVGMatrixgetScreenCTM()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getScreenCTM().
floatgetScreenPixelToMillimeterX()
DOM: Implements SVGSVGElement#getScreenPixelToMillimeterX().
floatgetScreenPixelToMillimeterY()
DOM: Implements SVGSVGElement#getScreenPixelToMillimeterY().
StyleSheetListgetStyleSheets()
DOM: Implements org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets().
SVGStringListgetSystemLanguage()
DOM: Implements org.w3c.dom.svg.SVGTests#getSystemLanguage().
protected DoublyIndexedTablegetTraitInformationTable()
Returns the table of TraitInformation objects for this element.
SVGMatrixgetTransformToElement(SVGElement element)
DOM: Implements org.w3c.dom.svg.SVGLocatable#getTransformToElement(SVGElement).
booleangetUseCurrentView()
DOM: Implements SVGSVGElement#getUseCurrentView().
SVGAnimatedRectgetViewBox()
DOM: Implements org.w3c.dom.svg.SVGFitToViewBox#getViewBox().
SVGRectgetViewport()
DOM: Implements SVGSVGElement#getViewport().
SVGAnimatedLengthgetWidth()
DOM: Implements SVGSVGElement#getWidth().
SVGAnimatedLengthgetX()
DOM: Implements SVGSVGElement#getX().
StringgetXMLlang()
DOM: Returns the xml:lang attribute value.
StringgetXMLspace()
DOM: Returns the xml:space attribute value.
SVGAnimatedLengthgetY()
DOM: Implements SVGSVGElement#getY().
shortgetZoomAndPan()
DOM: Implements org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan().
booleanhasExtension(String extension)
DOM: Implements 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 SVGSVGElement#pauseAnimations().
voidsetContentScriptType(String type)
DOM: Implements SVGSVGElement#setContentScriptType(String).
voidsetContentStyleType(String type)
DOM: Implements SVGSVGElement#setContentStyleType(String).
voidsetCurrentScale(float currentScale)
DOM: Implements SVGSVGElement#setCurrentScale(float).
voidsetCurrentTime(float seconds)
DOM: Implements SVGSVGElement#setCurrentTime(float).
voidsetUseCurrentView(boolean useCurrentView)
DOM: Implements 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 org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan().
intsuspendRedraw(int max_wait_milliseconds)
DOM: Implements SVGSVGElement#suspendRedraw(int).
voidunpauseAnimations()
DOM: Implements SVGSVGElement#unpauseAnimations().
voidunsuspendRedraw(int suspend_handle_id)
DOM: Implements SVGSVGElement#unsuspendRedraw(int).
voidunsuspendRedrawAll()
DOM: Implements 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.

viewBox

protected SVGOMAnimatedRect viewBox
The 'viewBox' 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 SVGSVGElement#animationsPaused().

canDispatch

public boolean canDispatch(String namespaceURI, String type)
DOM: Implements canDispatch.

checkEnclosure

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

checkIntersection

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

createEvent

public Event createEvent(String eventType)
DOM: Implements createEvent.

createSVGAngle

public SVGAngle createSVGAngle()
DOM: Implements SVGSVGElement#createSVGAngle().

createSVGLength

public SVGLength createSVGLength()
DOM: Implements SVGSVGElement#createSVGLength().

createSVGMatrix

public SVGMatrix createSVGMatrix()
DOM: Implements SVGSVGElement#createSVGMatrix().

createSVGNumber

public SVGNumber createSVGNumber()
DOM: Implements SVGSVGElement#createSVGNumber().

createSVGPoint

public SVGPoint createSVGPoint()
DOM: Implements SVGSVGElement#createSVGPoint().

createSVGRect

public SVGRect createSVGRect()
DOM: Implements SVGSVGElement#createSVGRect().

createSVGTransform

public SVGTransform createSVGTransform()
DOM: Implements SVGSVGElement#createSVGTransform().

createSVGTransformFromMatrix

public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGSVGElement#createSVGTransformFromMatrix(SVGMatrix).

deselectAll

public void deselectAll()
DOM: Implements SVGSVGElement#deselectAll().

forceRedraw

public void forceRedraw()
DOM: Implements 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 org.w3c.dom.svg.SVGLocatable#getBBox().

getComputedStyle

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

getContentScriptType

public String getContentScriptType()
DOM: Implements SVGSVGElement#getContentScriptType().

getContentStyleType

public String getContentStyleType()
DOM: Implements SVGSVGElement#getContentStyleType().

getCTM

public SVGMatrix getCTM()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getCTM().

getCurrentScale

public float getCurrentScale()
DOM: Implements SVGSVGElement#getCurrentView().

getCurrentTime

public float getCurrentTime()
DOM: Implements SVGSVGElement#getCurrentTime().

getCurrentTranslate

public SVGPoint getCurrentTranslate()
DOM: Implements SVGSVGElement#getCurrentTranslate().

getCurrentView

public SVGViewSpec getCurrentView()
DOM: Implements SVGSVGElement#getCurrentView().

getDocument

public DocumentView getDocument()
DOM: Implements org.w3c.dom.views.AbstractView#getDocument().

getElementById

public Element getElementById(String elementId)
DOM: Implements SVGSVGElement#getElementById(String).

getEnclosureList

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

getExternalResourcesRequired

public SVGAnimatedBoolean getExternalResourcesRequired()
DOM: Implements org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired().

getFarthestViewportElement

public SVGElement getFarthestViewportElement()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getFarthestViewportElement().

getHeight

public SVGAnimatedLength getHeight()
DOM: Implements SVGSVGElement#getHeight().

getIntersectionList

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

getLocalName

public String getLocalName()
DOM: Implements Node#getLocalName().

getNearestViewportElement

public SVGElement getNearestViewportElement()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getNearestViewportElement().

getOverrideStyle

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

getPixelUnitToMillimeterX

public float getPixelUnitToMillimeterX()
DOM: Implements SVGSVGElement#getPixelUnitToMillimeterX().

getPixelUnitToMillimeterY

public float getPixelUnitToMillimeterY()
DOM: Implements SVGSVGElement#getPixelUnitToMillimeterY().

getPreserveAspectRatio

public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
DOM: Implements org.w3c.dom.svg.SVGFitToViewBox#getPreserveAspectRatio().

getRequiredExtensions

public SVGStringList getRequiredExtensions()
DOM: Implements org.w3c.dom.svg.SVGTests#getRequiredExtensions().

getRequiredFeatures

public SVGStringList getRequiredFeatures()
DOM: Implements org.w3c.dom.svg.SVGTests#getRequiredFeatures().

getScreenCTM

public SVGMatrix getScreenCTM()
DOM: Implements org.w3c.dom.svg.SVGLocatable#getScreenCTM().

getScreenPixelToMillimeterX

public float getScreenPixelToMillimeterX()
DOM: Implements SVGSVGElement#getScreenPixelToMillimeterX().

getScreenPixelToMillimeterY

public float getScreenPixelToMillimeterY()
DOM: Implements SVGSVGElement#getScreenPixelToMillimeterY().

getStyleSheets

public StyleSheetList getStyleSheets()
DOM: Implements org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets().

getSystemLanguage

public SVGStringList getSystemLanguage()
DOM: Implements 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 org.w3c.dom.svg.SVGLocatable#getTransformToElement(SVGElement).

getUseCurrentView

public boolean getUseCurrentView()
DOM: Implements SVGSVGElement#getUseCurrentView().

getViewBox

public SVGAnimatedRect getViewBox()
DOM: Implements org.w3c.dom.svg.SVGFitToViewBox#getViewBox().

getViewport

public SVGRect getViewport()
DOM: Implements SVGSVGElement#getViewport().

getWidth

public SVGAnimatedLength getWidth()
DOM: Implements SVGSVGElement#getWidth().

getX

public SVGAnimatedLength getX()
DOM: Implements 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 SVGSVGElement#getY().

getZoomAndPan

public short getZoomAndPan()
DOM: Implements org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan().

hasExtension

public boolean hasExtension(String extension)
DOM: Implements 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 SVGSVGElement#pauseAnimations().

setContentScriptType

public void setContentScriptType(String type)
DOM: Implements SVGSVGElement#setContentScriptType(String).

setContentStyleType

public void setContentStyleType(String type)
DOM: Implements SVGSVGElement#setContentStyleType(String).

setCurrentScale

public void setCurrentScale(float currentScale)
DOM: Implements SVGSVGElement#setCurrentScale(float).

setCurrentTime

public void setCurrentTime(float seconds)
DOM: Implements SVGSVGElement#setCurrentTime(float).

setUseCurrentView

public void setUseCurrentView(boolean useCurrentView)
DOM: Implements 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 org.w3c.dom.svg.SVGZoomAndPan#getZoomAndPan().

suspendRedraw

public int suspendRedraw(int max_wait_milliseconds)
DOM: Implements SVGSVGElement#suspendRedraw(int).

unpauseAnimations

public void unpauseAnimations()
DOM: Implements SVGSVGElement#unpauseAnimations().

unsuspendRedraw

public void unsuspendRedraw(int suspend_handle_id)
DOM: Implements SVGSVGElement#unsuspendRedraw(int).

unsuspendRedrawAll

public void unsuspendRedrawAll()
DOM: Implements SVGSVGElement#unsuspendRedrawAll().
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.