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 {@link AnimatedAttributeListener}s 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 {@link AnimatedAttributeListener} that redispatches to all
listeners in {@link #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 URL | 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 {@link 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 {@link Document#createAttribute(String)}. |
Attr | createAttributeNS(String namespaceURI, String qualifiedName)
DOM: Implements {@link Document#createAttributeNS(String,String)}. |
CDATASection | createCDATASection(String data)
DOM: Implements {@link Document#createCDATASection(String)} |
Comment | createComment(String data)
DOM: Implements {@link Document#createComment(String)}. |
DocumentFragment | createDocumentFragment()
DOM: Implements {@link Document#createDocumentFragment()}. |
Element | createElement(String tagName)
DOM: Implements {@link Document#createElement(String)}. |
Element | createElementNS(String namespaceURI, String qualifiedName)
DOM: Implements {@link Document#createElementNS(String,String)}. |
EntityReference | createEntityReference(String name)
DOM: Implements {@link Document#createEntityReference(String)}. |
ProcessingInstruction | createProcessingInstruction(String target, String data)
DOM: Implements {@link
Document#createProcessingInstruction(String,String)}. |
Text | createTextNode(String data)
DOM: Implements {@link 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 {@link Localizable#formatMessage(String,Object[])}. |
protected AnimatedAttributeListener | getAnimatedAttributeListener()
Returns the {@link AnimatedAttributeListener} for the document. |
String | getDomain()
DOM: Implements {@link SVGDocument#getDomain()}. |
CSSStyleDeclaration | getOverrideStyle(Element elt, String pseudoElt)
DOM: Implements
{@link DocumentCSS#getOverrideStyle(Element,String)}. |
String | getReferrer()
DOM: Implements {@link SVGDocument#getReferrer()}. |
SVGSVGElement | getRootElement()
DOM: Implements {@link SVGDocument#getRootElement()}. |
String | getTitle()
DOM: Implements {@link SVGDocument#getTitle()}. |
String | getURL()
DOM: Implements {@link SVGDocument#getURL()} |
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 {@link AnimatedAttributeListener} from this document. |
void | removeCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
Removes an event listener for mutations on the
CSSNavigableDocument tree. |
void | setDocumentURI(String uri)
DOM: Implements {@link org.w3c.dom.Document#setDocumentURI(String)}. |
void | setIsSVG12(boolean b)
Sets whether the document supports SVG 1.2. |
void | setLocale(Locale l)
Implements {@link Localizable#setLocale(Locale)}. |
void | setReadonly(boolean v)
Sets this node readonly attribute. |
void | setReferrer(String s)
Sets the referrer string. |
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.