org.apache.batik.script
Class SVGDocumentProxy
java.lang.Object
|
+--org.apache.batik.script.DocumentProxy
|
+--org.apache.batik.script.SVGDocumentProxy
- All Implemented Interfaces:
- Document, DocumentEvent, Node, SVGDocument
- public class SVGDocumentProxy
- extends DocumentProxy
- implements SVGDocument
Proxy to an SVGDocument
using a WeakReference
to
allow the document to be discared when not used outside of the intepreter.
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Methods inherited from class org.apache.batik.script.DocumentProxy |
appendChild, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getAttributes, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getImplementation, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, importNode, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
SVGDocumentProxy
public SVGDocumentProxy(SVGDocument document)
createEvent
public Event createEvent(java.lang.String eventType)
throws DOMException
- Specified by:
createEvent
in interface DocumentEvent
- Parameters:
eventTypeThe
- eventType
parameter specifies the
type of Event
interface to be created. If the
Event
interface specified is supported by the
implementation this method will return a new Event
of
the interface type requested. If the Event
is to be
dispatched via the dispatchEvent
method the
appropriate event init method must be called after creation in
order to initialize the Event
's values. As an example,
a user wishing to synthesize some kind of UIEvent
would call createEvent
with the parameter "UIEvents".
The initUIEvent
method could then be called on the
newly created UIEvent
to set the specific type of
UIEvent to be dispatched and set its context information.The
createEvent
method is used in creating
Event
s when it is either inconvenient or unnecessary
for the user to create an Event
themselves. In cases
where the implementation provided Event
is
insufficient, users may supply their own Event
implementations for use with the dispatchEvent
method.- Returns:
- The newly created
Event
- Throws:
DOMException
- NOT_SUPPORTED_ERR: Raised if the implementation does not support the
type of Event
interface requested
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface SVGDocument
getReferrer
public java.lang.String getReferrer()
- Specified by:
getReferrer
in interface SVGDocument
getDomain
public java.lang.String getDomain()
- Specified by:
getDomain
in interface SVGDocument
getURL
public java.lang.String getURL()
- Specified by:
getURL
in interface SVGDocument
getRootElement
public SVGSVGElement getRootElement()
- Specified by:
getRootElement
in interface SVGDocument
Copyright © 2001 Apache Software Foundation. All Rights Reserved.