org.apache.batik.dom.svg
public class SVGOMDocument extends AbstractStylableDocument implements SVGDocument, SVGConstants, CSSNavigableDocument, IdContainer
Nested Class Summary | |
---|---|
protected class | SVGOMDocument.AnimAttrListener
Listener class for animated attribute changes. |
protected class | SVGOMDocument.DOMAttrModifiedListenerWrapper
DOM attribute modified listener wrapper. |
protected class | SVGOMDocument.DOMCharacterDataModifiedListenerWrapper
DOM character data modified listener wrapper. |
protected class | SVGOMDocument.DOMNodeInsertedListenerWrapper
DOM node inserted listener wrapper. |
protected class | SVGOMDocument.DOMNodeRemovedListenerWrapper
DOM node removed listener wrapper. |
protected class | SVGOMDocument.DOMSubtreeModifiedListenerWrapper
DOM subtree modified listener wrapper. |
Field Summary | |
---|---|
protected LinkedList | animatedAttributeListeners
List of AnimatedAttributeListeners attached to this document. |
protected HashMap | cssNavigableDocumentListeners
Map of CSSNavigableDocumentListeners to an array of wrapper
DOM listeners. |
protected boolean | isSVG12
Whether the document supports SVG 1.2. |
protected LocalizableSupport | localizableSupport
The localizable support for the error messages. |
protected AnimatedAttributeListener | mainAnimatedAttributeListener
The main AnimatedAttributeListener that redispatches to all
listeners in animatedAttributeListeners. |
protected boolean | readonly
Is this document immutable? |
protected String | referrer
The string representing the referrer. |
protected static String | RESOURCES
The error messages bundle class name. |
protected SVGContext | svgContext
The SVG context. |
protected ParsedURL | url
The URL of the document. |
Constructor Summary | |
---|---|
protected | SVGOMDocument()
Creates a new uninitialized document. |
SVGOMDocument(DocumentType dt, DOMImplementation impl)
Creates a new document. |
Method Summary | |
---|---|
void | addAnimatedAttributeListener(AnimatedAttributeListener aal)
Adds an AnimatedAttributeListener to this document, to be
notified of animated XML attribute changes. |
void | addCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
Adds an event listener for mutations on the
CSSNavigableDocument tree. |
protected Node | copyInto(Node n)
Copy the fields of the current node into the given node. |
Attr | createAttribute(String name)
DOM: Implements Document#createAttribute(String). |
Attr | createAttributeNS(String namespaceURI, String qualifiedName)
DOM: Implements Document#createAttributeNS(String,String). |
CDATASection | createCDATASection(String data)
DOM: Implements |
Comment | createComment(String data)
DOM: Implements Document#createComment(String). |
DocumentFragment | createDocumentFragment()
DOM: Implements Document#createDocumentFragment(). |
Element | createElement(String tagName)
DOM: Implements Document#createElement(String). |
Element | createElementNS(String namespaceURI, String qualifiedName)
DOM: Implements Document#createElementNS(String,String). |
EntityReference | createEntityReference(String name)
DOM: Implements Document#createEntityReference(String). |
ProcessingInstruction | createProcessingInstruction(String target, String data)
DOM: Implements Document#createProcessingInstruction(String,String). |
Text | createTextNode(String data)
DOM: Implements Document#createTextNode(String). |
protected Node | deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
String | formatMessage(String key, Object[] args)
Implements (String,Object[]) . |
protected AnimatedAttributeListener | getAnimatedAttributeListener()
Returns the AnimatedAttributeListener for the document. |
String | getDomain()
DOM: Implements SVGDocument#getDomain(). |
CSSStyleDeclaration | getOverrideStyle(Element elt, String pseudoElt)
DOM: Implements
DocumentCSS#getOverrideStyle(Element,String). |
ParsedURL | getParsedURL()
Returns the URI of the document. |
String | getReferrer()
DOM: Implements SVGDocument#getReferrer(). |
SVGSVGElement | getRootElement()
DOM: Implements SVGDocument#getRootElement(). |
SVGContext | getSVGContext()
Returns the SVG context used to get SVG specific informations. |
String | getTitle()
DOM: Implements SVGDocument#getTitle(). |
String | getURL()
DOM: Implements |
URL | getURLObject()
Returns the URI of the document. |
boolean | isId(Attr node)
Returns true if the given Attr node represents an 'id'
for this document. |
boolean | isReadonly()
Tests whether this node is readonly. |
boolean | isSVG12()
Returns whether the document supports SVG 1.2. |
protected Node | newNode()
Returns a new uninitialized instance of this object's class. |
protected void | overrideStylePropertyChanged(CSSStylableElement e, String name, String value, String prio)
A property in the override style declaration has been changed. |
protected void | overrideStylePropertyRemoved(CSSStylableElement e, String name)
A property in the override style declaration has been removed. |
protected void | overrideStyleTextChanged(CSSStylableElement e, String text)
The text of the override style declaration for this element has been
modified. |
void | removeAnimatedAttributeListener(AnimatedAttributeListener aal)
Removes an AnimatedAttributeListener from this document. |
void | removeCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
Removes an event listener for mutations on the
CSSNavigableDocument tree. |
void | setDocumentURI(String uri)
DOM: Implements org.w3c.dom.Document#setDocumentURI(String). |
void | setIsSVG12(boolean b)
Sets whether the document supports SVG 1.2. |
void | setLocale(Locale l)
Implements setLocale. |
void | setParsedURL(ParsedURL url)
Sets the URI of the document. |
void | setReadonly(boolean v)
Sets this node readonly attribute. |
void | setReferrer(String s)
Sets the referrer string. |
void | setSVGContext(SVGContext ctx)
Sets the SVG context to use to get SVG specific informations.
|
void | setURLObject(URL url)
Sets the URI of the document. |
Parameters: n a node of the type of this.
Returns: a SVGStyleSheetProcessingInstruction if target is "xml-stylesheet" or a GenericProcessingInstruction otherwise.
Parameters: n a node of the type of this.
(String,Object[])
.data:
URI scheme), then null
will be returned.Parameters: ctx the SVG context