SVG Tiny 1.2 – 20081222

P Java Language Binding

Contents

This appendix is normative.

Constants in this binding are always public static final. All fields and methods are public.

P.1 Package org.w3c.dom

Class constants for org.w3c.dom.DOMException
The org.w3c.dom.DOMException class holds the following constants:
INDEX_SIZE_ERR
This constant is a short and its value is 1.
DOMSTRING_SIZE_ERR
This constant is a short and its value is 2.
HIERARCHY_REQUEST_ERR
This constant is a short and its value is 3.
WRONG_DOCUMENT_ERR
This constant is a short and its value is 4.
INVALID_CHARACTER_ERR
This constant is a short and its value is 5.
NO_DATA_ALLOWED_ERR
This constant is a short and its value is 6.
NO_MODIFICATION_ALLOWED_ERR
This constant is a short and its value is 7.
NOT_FOUND_ERR
This constant is a short and its value is 8.
NOT_SUPPORTED_ERR
This constant is a short and its value is 9.
INUSE_ATTRIBUTE_ERR
This constant is a short and its value is 10.
INVALID_STATE_ERR
This constant is a short and its value is 11.
SYNTAX_ERR
This constant is a short and its value is 12.
INVALID_MODIFICATION_ERR
This constant is a short and its value is 13.
NAMESPACE_ERR
This constant is a short and its value is 14.
INVALID_ACCESS_ERR
This constant is a short and its value is 15.
VALIDATION_ERR
This constant is a short and its value is 16.
TYPE_MISMATCH_ERR
This constant is a short and its value is 17.
Class org.w3c.dom.DOMException

org.w3c.dom.DOMException extends java.lang.RuntimeException.

The org.w3c.dom.DOMException class has the following methods:
getCode()
This method returns a short.
setCode(short code)
This method has no return value.
Interface org.w3c.dom.Node
The org.w3c.dom.Node interface has the following methods:
getNamespaceURI()
This method returns a String.
getLocalName()
This method returns a String.
getParentNode()
This method returns a Node.
getOwnerDocument()
This method returns a Document.
getTextContent()
This method returns a String.
setTextContent(String textContent)
This method has no return value.
appendChild(Node newChild)
This method returns a Node.
This method throws DOMException exceptions.
insertBefore(Node newChild, Node refChild)
This method returns a Node.
This method throws DOMException exceptions.
removeChild(Node oldChild)
This method returns a Node.
This method throws DOMException exceptions.
cloneNode(boolean deep)
This method returns a Node.
Interface org.w3c.dom.Element

org.w3c.dom.Element extends Node, ElementTraversal.

The org.w3c.dom.Element interface has the following methods:
getAttributeNS(String namespaceURI, String localName)
This method returns a String.
This method throws DOMException exceptions.
setAttributeNS(String namespaceURI, String qualifiedName, String value)
This method has no return value.
This method throws DOMException exceptions.
getAttribute(String name)
This method returns a String.
setAttribute(String name, String value)
This method has no return value.
This method throws DOMException exceptions.
Interface org.w3c.dom.Document

org.w3c.dom.Document extends Node.

The org.w3c.dom.Document interface has the following methods:
createElementNS(String namespaceURI, String qualifiedName)
This method returns a Element.
This method throws DOMException exceptions.
getDocumentElement()
This method returns a Element.
getElementById(String elementId)
This method returns a Element.
Interface org.w3c.dom.ElementTraversal
The org.w3c.dom.ElementTraversal interface has the following methods:
getFirstElementChild()
This method returns a Element.
getLastElementChild()
This method returns a Element.
getNextElementSibling()
This method returns a Element.
getPreviousElementSibling()
This method returns a Element.
getChildElementCount()
This method returns a long.
Interface org.w3c.dom.Location
The org.w3c.dom.Location interface has the following methods:
assign(String iri)
This method has no return value.
reload()
This method has no return value.
Interface org.w3c.dom.Window
The org.w3c.dom.Window interface has the following methods:
getParent()
This method returns a Window.
getLocation()
This method returns a Location.

P.2 Package org.w3c.dom.views

Interface org.w3c.dom.views.AbstractView
The org.w3c.dom.views.AbstractView interface has the following methods:
getDocument()
This method returns a DocumentView.
Interface org.w3c.dom.views.DocumentView
The org.w3c.dom.views.DocumentView interface has the following methods:
getDefaultView()
This method returns a AbstractView.

P.3 Package org.w3c.dom.events

Interface org.w3c.dom.events.EventTarget
The org.w3c.dom.events.EventTarget interface has the following methods:
addEventListener(String type, EventListener listener, boolean useCapture)
This method has no return value.
removeEventListener(String type, EventListener listener, boolean useCapture)
This method has no return value.
Interface org.w3c.dom.events.EventListener
The org.w3c.dom.events.EventListener interface has the following methods:
handleEvent(Event evt)
This method has no return value.
Interface org.w3c.dom.events.Event
The org.w3c.dom.events.Event interface has the following methods:
getTarget()
This method returns a EventTarget.
getCurrentTarget()
This method returns a EventTarget.
getType()
This method returns a String.
getCancelable()
This method returns a boolean.
getDefaultPrevented()
This method returns a boolean.
stopPropagation()
This method has no return value.
preventDefault()
This method has no return value.
Interface org.w3c.dom.events.MouseEvent

org.w3c.dom.events.MouseEvent extends UIEvent.

The org.w3c.dom.events.MouseEvent interface has the following methods:
getScreenX()
This method returns a long.
getScreenY()
This method returns a long.
getClientX()
This method returns a long.
getClientY()
This method returns a long.
getButton()
This method returns a short.
Interface org.w3c.dom.events.MouseWheelEvent

org.w3c.dom.events.MouseWheelEvent extends MouseEvent.

The org.w3c.dom.events.MouseWheelEvent interface has the following methods:
getWheelDelta()
This method returns a long.
Interface org.w3c.dom.events.TextEvent

org.w3c.dom.events.TextEvent extends UIEvent.

The org.w3c.dom.events.TextEvent interface has the following methods:
getData()
This method returns a String.
Interface org.w3c.dom.events.KeyboardEvent

org.w3c.dom.events.KeyboardEvent extends UIEvent.

The org.w3c.dom.events.KeyboardEvent interface has the following methods:
getKeyIdentifier()
This method returns a String.
Interface org.w3c.dom.events.UIEvent

org.w3c.dom.events.UIEvent extends Event.

The org.w3c.dom.events.UIEvent interface has the following methods:
getDetail()
This method returns a long.
Interface org.w3c.dom.events.ProgressEvent

org.w3c.dom.events.ProgressEvent extends Event.

The org.w3c.dom.events.ProgressEvent interface has the following methods:
getLengthComputable()
This method returns a boolean.
getLoaded()
This method returns a long.
getTotal()
This method returns a long.

P.4 Package org.w3c.dom.smil

Interface org.w3c.dom.smil.ElementTimeControl
The org.w3c.dom.smil.ElementTimeControl interface has the following methods:
beginElementAt(float offset)
This method has no return value.
beginElement()
This method has no return value.
endElementAt(float offset)
This method has no return value.
endElement()
This method has no return value.
Interface org.w3c.dom.smil.TimeEvent

org.w3c.dom.smil.TimeEvent extends Event.

The org.w3c.dom.smil.TimeEvent interface has the following methods:
getDetail()
This method returns a long.

P.5 Package org.w3c.dom.svg

Class constants for org.w3c.dom.svg.SVGException
The org.w3c.dom.svg.SVGException class holds the following constants:
SVG_WRONG_TYPE_ERR
This constant is a short and its value is 0.
SVG_INVALID_VALUE_ERR
This constant is a short and its value is 1.
SVG_MATRIX_NOT_INVERTABLE
This constant is a short and its value is 2.
Class org.w3c.dom.svg.SVGException

org.w3c.dom.svg.SVGException extends java.lang.RuntimeException.

The org.w3c.dom.svg.SVGException class has the following methods:
getCode()
This method returns a short.
setCode(short code)
This method has no return value.
Interface org.w3c.dom.svg.SVGDocument

org.w3c.dom.svg.SVGDocument extends Document, EventTarget.

Interface org.w3c.dom.svg.SVGUseElement

org.w3c.dom.svg.SVGUseElement extends SVGLocatableElement.

Interface org.w3c.dom.svg.SVGElementInstance

org.w3c.dom.svg.SVGElementInstance extends EventTarget.

The org.w3c.dom.svg.SVGElementInstance interface has the following methods:
getCorrespondingElement()
This method returns a SVGElement.
getCorrespondingUseElement()
This method returns a SVGUseElement.
Interface constants org.w3c.dom.svg.SVGSVGElement
The org.w3c.dom.svg.SVGSVGElement interface has the following constants:
NAV_AUTO
This constant is a short and its value is 1.
NAV_NEXT
This constant is a short and its value is 2.
NAV_PREV
This constant is a short and its value is 3.
NAV_UP
This constant is a short and its value is 4.
NAV_UP_RIGHT
This constant is a short and its value is 5.
NAV_RIGHT
This constant is a short and its value is 6.
NAV_DOWN_RIGHT
This constant is a short and its value is 7.
NAV_DOWN
This constant is a short and its value is 8.
NAV_DOWN_LEFT
This constant is a short and its value is 9.
NAV_LEFT
This constant is a short and its value is 10.
NAV_UP_LEFT
This constant is a short and its value is 11.
Interface org.w3c.dom.svg.SVGSVGElement

org.w3c.dom.svg.SVGSVGElement extends SVGLocatableElement, SVGTimedElement.

The org.w3c.dom.svg.SVGSVGElement interface has the following methods:
getCurrentScale()
This method returns a float.
setCurrentScale(float currentScale)
This method has no return value.
getCurrentRotate()
This method returns a float.
setCurrentRotate(float currentRotate)
This method has no return value.
getCurrentTranslate()
This method returns a SVGPoint.
getViewport()
This method returns a SVGRect.
getCurrentTime()
This method returns a float.
setCurrentTime(float seconds)
This method has no return value.
createSVGMatrixComponents(float a, float b, float c, float d, float e, float f)
This method returns a SVGMatrix.
createSVGRect()
This method returns a SVGRect.
createSVGPoint()
This method returns a SVGPoint.
createSVGPath()
This method returns a SVGPath.
createSVGRGBColor(float red, float green, float blue)
This method returns a SVGRGBColor.
This method throws SVGException exceptions.
moveFocus(short motionType)
This method has no return value.
This method throws DOMException exceptions.
setFocus(EventTarget theObject)
This method has no return value.
This method throws DOMException exceptions.
getCurrentFocusedObject()
This method returns a EventTarget.
Interface org.w3c.dom.svg.SVGRGBColor
The org.w3c.dom.svg.SVGRGBColor interface has the following methods:
getRed()
This method returns a long.
setRed(long red)
This method has no return value.
getGreen()
This method returns a long.
setGreen(long green)
This method has no return value.
getBlue()
This method returns a long.
setBlue(long blue)
This method has no return value.
Interface org.w3c.dom.svg.SVGRect
The org.w3c.dom.svg.SVGRect interface has the following methods:
getX()
This method returns a float.
setX(float x)
This method has no return value.
getY()
This method returns a float.
setY(float y)
This method has no return value.
getWidth()
This method returns a float.
setWidth(float width)
This method has no return value.
getHeight()
This method returns a float.
setHeight(float height)
This method has no return value.
Interface org.w3c.dom.svg.SVGPoint
The org.w3c.dom.svg.SVGPoint interface has the following methods:
getX()
This method returns a float.
setX(float x)
This method has no return value.
getY()
This method returns a float.
setY(float y)
This method has no return value.
matrixTransform(SVGMatrix matrix)
This method returns a SVGPoint.
Interface constants org.w3c.dom.svg.SVGPath
The org.w3c.dom.svg.SVGPath interface has the following constants:
MOVE_TO
This constant is a short and its value is 77.
LINE_TO
This constant is a short and its value is 76.
CURVE_TO
This constant is a short and its value is 67.
QUAD_TO
This constant is a short and its value is 81.
CLOSE
This constant is a short and its value is 90.
Interface org.w3c.dom.svg.SVGPath
The org.w3c.dom.svg.SVGPath interface has the following methods:
getNumberOfSegments()
This method returns a long.
getSegment(long cmdIndex)
This method returns a short.
This method throws DOMException exceptions.
getSegmentParam(long cmdIndex, long paramIndex)
This method returns a float.
This method throws DOMException exceptions.
moveTo(float x, float y)
This method has no return value.
lineTo(float x, float y)
This method has no return value.
quadTo(float x1, float y1, float x2, float y2)
This method has no return value.
curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
This method has no return value.
close()
This method has no return value.
Interface org.w3c.dom.svg.SVGMatrix
The org.w3c.dom.svg.SVGMatrix interface has the following methods:
getComponent(long index)
This method returns a float.
This method throws DOMException exceptions.
mMultiply(SVGMatrix secondMatrix)
This method returns a SVGMatrix.
inverse()
This method returns a SVGMatrix.
This method throws SVGException exceptions.
mTranslate(float x, float y)
This method returns a SVGMatrix.
mScale(float scaleFactor)
This method returns a SVGMatrix.
mRotate(float angle)
This method returns a SVGMatrix.
Interface org.w3c.dom.svg.SVGLocatable
The org.w3c.dom.svg.SVGLocatable interface has the following methods:
getBBox()
This method returns a SVGRect.
getScreenCTM()
This method returns a SVGMatrix.
getScreenBBox()
This method returns a SVGRect.
Interface org.w3c.dom.svg.SVGLocatableElement

org.w3c.dom.svg.SVGLocatableElement extends SVGElement, SVGLocatable.

Interface org.w3c.dom.svg.TraitAccess
The org.w3c.dom.svg.TraitAccess interface has the following methods:
getTrait(String name)
This method returns a String.
This method throws DOMException exceptions.
getTraitNS(String namespaceURI, String name)
This method returns a String.
This method throws DOMException exceptions.
getFloatTrait(String name)
This method returns a float.
This method throws DOMException exceptions.
getFloatListTrait(String name)
This method returns a float[].
This method throws DOMException exceptions.
getMatrixTrait(String name)
This method returns a SVGMatrix.
This method throws DOMException exceptions.
getRectTrait(String name)
This method returns a SVGRect.
This method throws DOMException exceptions.
getPathTrait(String name)
This method returns a SVGPath.
This method throws DOMException exceptions.
getRGBColorTrait(String name)
This method returns a SVGRGBColor.
This method throws DOMException exceptions.
getPresentationTrait(String name)
This method returns a String.
This method throws DOMException exceptions.
getPresentationTraitNS(String namespaceURI, String name)
This method returns a String.
This method throws DOMException exceptions.
getFloatPresentationTrait(String name)
This method returns a float.
This method throws DOMException exceptions.
getFloatListPresentationTrait(String name)
This method returns a float[].
This method throws DOMException exceptions.
getMatrixPresentationTrait(String name)
This method returns a SVGMatrix.
This method throws DOMException exceptions.
getRectPresentationTrait(String name)
This method returns a SVGRect.
This method throws DOMException exceptions.
getPathPresentationTrait(String name)
This method returns a SVGPath.
This method throws DOMException exceptions.
getRGBColorPresentationTrait(String name)
This method returns a SVGRGBColor.
This method throws DOMException exceptions.
setTrait(String name, String value)
This method has no return value.
This method throws DOMException exceptions.
setTraitNS(String namespaceURI, String name, String value)
This method has no return value.
This method throws DOMException exceptions.
setFloatTrait(String name, float value)
This method has no return value.
This method throws DOMException exceptions.
setFloatListTrait(String name, float[] value)
This method has no return value.
This method throws DOMException exceptions.
setMatrixTrait(String name, SVGMatrix matrix)
This method has no return value.
This method throws DOMException exceptions.
setRectTrait(String name, SVGRect rect)
This method has no return value.
This method throws DOMException exceptions.
setPathTrait(String name, SVGPath path)
This method has no return value.
This method throws DOMException exceptions.
setRGBColorTrait(String name, SVGRGBColor color)
This method has no return value.
This method throws DOMException exceptions.
Interface org.w3c.dom.svg.SVGElement

org.w3c.dom.svg.SVGElement extends Element, EventTarget, TraitAccess.

The org.w3c.dom.svg.SVGElement interface has the following methods:
getId()
This method returns a String.
setId(String id)
This method has no return value.
Interface org.w3c.dom.svg.SVGTimedElement

org.w3c.dom.svg.SVGTimedElement extends SVGElement, smil::ElementTimeControl.

The org.w3c.dom.svg.SVGTimedElement interface has the following methods:
pauseElement()
This method has no return value.
resumeElement()
This method has no return value.
getIsPaused()
This method returns a boolean.
Interface org.w3c.dom.svg.SVGAnimationElement

org.w3c.dom.svg.SVGAnimationElement extends SVGTimedElement.

Interface org.w3c.dom.svg.SVGVisualMediaElement

org.w3c.dom.svg.SVGVisualMediaElement extends SVGLocatableElement, SVGTimedElement.

Interface org.w3c.dom.svg.SVGTimer

org.w3c.dom.svg.SVGTimer extends events::EventTarget.

The org.w3c.dom.svg.SVGTimer interface has the following methods:
getDelay()
This method returns a long.
setDelay(long delay)
This method has no return value.
getRepeatInterval()
This method returns a long.
setRepeatInterval(long repeatInterval)
This method has no return value.
getRunning()
This method returns a boolean.
start()
This method has no return value.
stop()
This method has no return value.
Interface org.w3c.dom.svg.SVGGlobal
The org.w3c.dom.svg.SVGGlobal interface has the following methods:
createTimer(long initialInterval, long repeatInterval)
This method returns a SVGTimer.
getURL(String iri, AsyncStatusCallback callback)
This method has no return value.
postURL(String iri, String data, AsyncStatusCallback callback, String type, String encoding)
This method has no return value.
parseXML(String data, Document contextDoc)
This method returns a Node.
Interface org.w3c.dom.svg.AsyncStatusCallback
The org.w3c.dom.svg.AsyncStatusCallback interface has the following methods:
operationComplete(AsyncURLStatus status)
This method has no return value.
Interface org.w3c.dom.svg.AsyncURLStatus
The org.w3c.dom.svg.AsyncURLStatus interface has the following methods:
getSuccess()
This method returns a boolean.
getContentType()
This method returns a String.
getContent()
This method returns a String.
Interface org.w3c.dom.svg.EventListenerInitializer2
The org.w3c.dom.svg.EventListenerInitializer2 interface has the following methods:
initializeEventListeners(Element scriptElement)
This method has no return value.
createEventListener(Element handlerElement)
This method returns a EventListener.