P Java Language Binding for SVG
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
- Error 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.
- Exception
Class org.w3c.dom.DOMException
- 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.
-
Class org.w3c.dom.Node
- The org.w3c.dom.Node
class 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.
-
Class org.w3c.dom.Element
org.w3c.dom.Element extends
Node, ElementTraversal.
- The org.w3c.dom.Element
class 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.
-
Class org.w3c.dom.Document
org.w3c.dom.Document extends
Node.
- The org.w3c.dom.Document
class has the following methods:
- getImplementation()
- This method returns a DOMImplementation.
- 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.
-
Class org.w3c.dom.ElementTraversal
- The org.w3c.dom.ElementTraversal
class 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.
-
Class org.w3c.dom.DOMImplementation
P.2 Package org.w3c.dom.events
-
Class org.w3c.dom.events.EventTarget
- The org.w3c.dom.events.EventTarget
class 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.
- addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, Object evtGroup)
- This method has no return value.
- removeEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture)
- This method has no return value.
-
Class org.w3c.dom.events.EventListener
- The org.w3c.dom.events.EventListener
class has the following methods:
- handleEvent(Event evt)
- This method has no return value.
-
Class org.w3c.dom.events.Event
- The org.w3c.dom.events.Event
class has the following methods:
- getTarget()
- This method returns a EventTarget.
- getCurrentTarget()
- This method returns a EventTarget.
- getType()
- This method returns a String.
- getNamespaceURI()
- 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.
-
Class org.w3c.dom.events.MouseEvent
org.w3c.dom.events.MouseEvent extends
UIEvent.
- The org.w3c.dom.events.MouseEvent
class 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.
-
Class org.w3c.dom.events.MouseWheelEvent
org.w3c.dom.events.MouseWheelEvent extends
MouseEvent.
- The org.w3c.dom.events.MouseWheelEvent
class has the following methods:
- getWheelDelta()
- This method returns a long.
-
Class org.w3c.dom.events.TextEvent
org.w3c.dom.events.TextEvent extends
UIEvent.
- The org.w3c.dom.events.TextEvent
class has the following methods:
- getData()
- This method returns a String.
-
Class org.w3c.dom.events.KeyboardEvent
org.w3c.dom.events.KeyboardEvent extends
UIEvent.
- The org.w3c.dom.events.KeyboardEvent
class has the following methods:
- getKeyIdentifier()
- This method returns a String.
-
Class org.w3c.dom.events.UIEvent
org.w3c.dom.events.UIEvent extends
Event.
- The org.w3c.dom.events.UIEvent
class has the following methods:
- getDetail()
- This method returns a long.
-
Class org.w3c.dom.events.ProgressEvent
org.w3c.dom.events.ProgressEvent extends
Event.
- The org.w3c.dom.events.ProgressEvent
class has the following methods:
- getLengthComputable()
- This method returns a boolean.
- getLoaded()
- This method returns a long.
- getTotal()
- This method returns a long.
- Class constants org.w3c.dom.events.ConnectionEvent
- The org.w3c.dom.events.ConnectionEvent class has the following constants:
- NO_ERR
- This constant is a
short
and its value is
0. - NETWORK_ERR
- This constant is a
short
and its value is
1.
-
Class org.w3c.dom.events.ConnectionEvent
org.w3c.dom.events.ConnectionEvent extends
Event.
- The org.w3c.dom.events.ConnectionEvent
class has the following methods:
- getErrorCode()
- This method returns a short.
- getReceivedData()
- This method returns a byte[].
P.3 Package org.w3c.dom.smil
-
Class org.w3c.dom.smil.ElementTimeControl
- The org.w3c.dom.smil.ElementTimeControl
class 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.
-
Class org.w3c.dom.smil.TimeEvent
org.w3c.dom.smil.TimeEvent extends
Event.
- The org.w3c.dom.smil.TimeEvent
class has the following methods:
- getDetail()
- This method returns a long.
P.4 Package org.w3c.global
-
Class org.w3c.global.Global
- Error constants for org.w3c.global.GlobalException
- The org.w3c.global.GlobalException
class holds the following constants:
- NOT_CONNECTED_ERR
- This constant is a
short
and its value is
1. - ENCODING_ERR
- This constant is a
short
and its value is
2. - DENIED_ERR
- This constant is a
short
and its value is
3. - UNKNOWN_ERR
- This constant is a
short
and its value is
4.
- Exception
Class org.w3c.global.GlobalException
- The org.w3c.global.GlobalException
class has the following methods:
- getCode()
- This method returns a short.
-
setCode(short code)
- This method has no return value.
-
Class org.w3c.global.Connection
org.w3c.global.Connection extends
EventTarget.
- The org.w3c.global.Connection
class has the following methods:
- getConnected()
- This method returns a boolean.
- connect(String host, short port)
- This method has no return value.
-
This method throws GlobalException exceptions.
- send(byte[] data)
- This method has no return value.
-
This method throws GlobalException exceptions.
- close()
- This method has no return value.
-
Class org.w3c.global.Timer
org.w3c.global.Timer extends
events::EventTarget.
- The org.w3c.global.Timer
class 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.
P.5 Package org.w3c.svg
- Error constants for org.w3c.svg.SVGException
- The org.w3c.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.
- Exception
Class org.w3c.svg.SVGException
- The org.w3c.svg.SVGException
class has the following methods:
- getCode()
- This method returns a short.
-
setCode(short code)
- This method has no return value.
-
Class org.w3c.svg.SVGDocument
org.w3c.svg.SVGDocument extends
Document, EventTarget.
- The org.w3c.svg.SVGDocument
class has the following methods:
- getGlobal()
- This method returns a SVGGlobal.
-
Class org.w3c.svg.SVGElementInstance
org.w3c.svg.SVGElementInstance extends
EventTarget.
- The org.w3c.svg.SVGElementInstance
class has the following methods:
- getCorrespondingElement()
- This method returns a SVGElement.
- getCorrespondingUseElement()
- This method returns a SVGElement.
- Class constants org.w3c.svg.SVGSVGElement
- The org.w3c.svg.SVGSVGElement class 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.
-
Class org.w3c.svg.SVGSVGElement
org.w3c.svg.SVGSVGElement extends
SVGLocatableElement, SVGTimedElement.
- The org.w3c.svg.SVGSVGElement
class 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.
-
Class org.w3c.svg.SVGRGBColor
- The org.w3c.svg.SVGRGBColor
class 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.
-
Class org.w3c.svg.SVGRect
- The org.w3c.svg.SVGRect
class 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.
-
Class org.w3c.svg.SVGPoint
- The org.w3c.svg.SVGPoint
class 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.
- Class constants org.w3c.svg.SVGPath
- The org.w3c.svg.SVGPath class 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.
-
Class org.w3c.svg.SVGPath
- The org.w3c.svg.SVGPath
class 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.
-
Class org.w3c.svg.SVGMatrix
- The org.w3c.svg.SVGMatrix
class 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.
-
Class org.w3c.svg.SVGLocatable
- The org.w3c.svg.SVGLocatable
class has the following methods:
- getBBox()
- This method returns a SVGRect.
- getScreenCTM()
- This method returns a SVGMatrix.
- getScreenBBox()
- This method returns a SVGRect.
-
Class org.w3c.svg.SVGLocatableElement
org.w3c.svg.SVGLocatableElement extends
SVGElement, SVGLocatable.
-
Class org.w3c.svg.TraitAccess
- The org.w3c.svg.TraitAccess
class 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.
-
Class org.w3c.svg.SVGElement
org.w3c.svg.SVGElement extends
Element, EventTarget, TraitAccess.
- The org.w3c.svg.SVGElement
class has the following methods:
- getId()
- This method returns a String.
-
setId(String id)
- This method has no return value.
-
Class org.w3c.svg.SVGTimedElement
org.w3c.svg.SVGTimedElement extends
SVGElement, smil::ElementTimeControl.
- The org.w3c.svg.SVGTimedElement
class has the following methods:
- pauseElement()
- This method has no return value.
- resumeElement()
- This method has no return value.
- getIsPaused()
- This method returns a boolean.
-
Class org.w3c.svg.SVGAnimationElement
org.w3c.svg.SVGAnimationElement extends
SVGTimedElement.
-
Class org.w3c.svg.SVGVisualMediaElement
org.w3c.svg.SVGVisualMediaElement extends
SVGLocatableElement, SVGTimedElement.
-
Class org.w3c.svg.SVGGlobal
org.w3c.svg.SVGGlobal extends
Global.
- The org.w3c.svg.SVGGlobal
class has the following methods:
- createConnection()
- This method returns a Connection.
- createTimer(long initialInterval, long repeatInterval)
- This method returns a Timer.
-
This method throws GlobalException exceptions.
- gotoLocation(String newIRI)
- This method has no return value.
- getDocument()
- This method returns a Document.
- getParent()
- This method returns a Global.
- binaryToString(byte[] octets, String encoding)
- This method returns a String.
-
This method throws GlobalException exceptions.
- stringToBinary(String data, String encoding)
- This method returns a byte[].
-
This method throws GlobalException exceptions.
- 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.
-
Class org.w3c.svg.AsyncStatusCallback
- The org.w3c.svg.AsyncStatusCallback
class has the following methods:
- operationComplete(AsyncURLStatus status)
- This method has no return value.
-
Class org.w3c.svg.AsyncURLStatus
- The org.w3c.svg.AsyncURLStatus
class has the following methods:
- getSuccess()
- This method returns a boolean.
- getContentType()
- This method returns a String.
- getContent()
- This method returns a String.
-
Class org.w3c.svg.EventListenerInitializer2
- The org.w3c.svg.EventListenerInitializer2
class has the following methods:
- initializeEventListeners(Element scriptElement)
- This method has no return value.
- createEventListener(Element handlerElement)
- This method returns a EventListener.