|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
org.apache.batik.dom.AbstractStylableDocument
org.apache.batik.anim.dom.SVGOMDocument
public class SVGOMDocument
This class implements SVGDocument.
| 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. |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractDocument |
|---|
AbstractDocument.DocumentConfiguration, AbstractDocument.DocumentError, AbstractDocument.IdSoftRef, AbstractDocument.XPathExpr, AbstractDocument.XPathNodeNSResolver |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| 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 org.apache.batik.i18n.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. |
| Fields inherited from class org.apache.batik.dom.AbstractStylableDocument |
|---|
cssEngine, defaultView |
| Fields inherited from class org.apache.batik.dom.AbstractDocument |
|---|
documentEventSupport, documentURI, domConfig, elementsById, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, inputEncoding, strictErrorChecking, traversalSupport, xblManager, xmlEncoding, xmlStandalone, xmlVersion |
| Fields inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
childNodes |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| 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 Document.createCDATASection(String) |
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 Localizable.formatMessage(String,Object[]). |
protected AnimatedAttributeListener |
getAnimatedAttributeListener()
Returns the AnimatedAttributeListener for the document. |
String |
getDomain()
DOM: Implements SVGDocument.getDomain(). |
org.w3c.dom.css.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(). |
org.w3c.dom.svg.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 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 AnimatedAttributeListener from this document. |
void |
removeCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
Removes an event listener for mutations on the CSSNavigableDocument tree. |
void |
setDocumentURI(String uri)
DOM: Implements Document.setDocumentURI(String). |
void |
setIsSVG12(boolean b)
Sets whether the document supports SVG 1.2. |
void |
setLocale(Locale l)
Implements Localizable.setLocale(Locale). |
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. |
| Methods inherited from class org.apache.batik.dom.AbstractStylableDocument |
|---|
clearViewCSS, getCSSEngine, getDefaultView, getStyleSheets, setCSSEngine |
| 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 |
|---|
adoptNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setStrictErrorChecking, setXmlStandalone, setXmlVersion |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.w3c.dom.events.DocumentEvent |
|---|
createEvent |
| Methods inherited from interface org.apache.batik.dom.svg.IdContainer |
|---|
getElementById |
| Field Detail |
|---|
protected static final String RESOURCES
protected transient org.apache.batik.i18n.LocalizableSupport localizableSupport
protected String referrer
protected ParsedURL url
protected transient boolean readonly
protected boolean isSVG12
protected HashMap cssNavigableDocumentListeners
protected AnimatedAttributeListener mainAnimatedAttributeListener
AnimatedAttributeListener that redispatches to all
listeners in animatedAttributeListeners.
protected LinkedList animatedAttributeListeners
AnimatedAttributeListeners attached to this document.
protected transient SVGContext svgContext
| Constructor Detail |
|---|
protected SVGOMDocument()
public SVGOMDocument(DocumentType dt,
DOMImplementation impl)
| Method Detail |
|---|
public void setLocale(Locale l)
Localizable.setLocale(Locale).
setLocale in interface org.apache.batik.i18n.LocalizablesetLocale in class AbstractDocument
public String formatMessage(String key,
Object[] args)
throws MissingResourceException
Localizable.formatMessage(String,Object[]).
formatMessage in interface org.apache.batik.i18n.LocalizableformatMessage in class AbstractDocumentMissingResourceExceptionpublic String getTitle()
SVGDocument.getTitle().
getTitle in interface org.w3c.dom.svg.SVGDocumentpublic String getReferrer()
SVGDocument.getReferrer().
getReferrer in interface org.w3c.dom.svg.SVGDocumentpublic void setReferrer(String s)
public String getDomain()
SVGDocument.getDomain().
getDomain in interface org.w3c.dom.svg.SVGDocumentpublic org.w3c.dom.svg.SVGSVGElement getRootElement()
SVGDocument.getRootElement().
getRootElement in interface org.w3c.dom.svg.SVGDocumentpublic String getURL()
SVGDocument.getURL()
getURL in interface org.w3c.dom.svg.SVGDocumentpublic URL getURLObject()
URL (for example if it uses a data:
URI scheme), then null will be returned.
public ParsedURL getParsedURL()
public void setURLObject(URL url)
public void setParsedURL(ParsedURL url)
public void setDocumentURI(String uri)
Document.setDocumentURI(String).
setDocumentURI in interface DocumentsetDocumentURI in class AbstractDocument
public Element createElement(String tagName)
throws DOMException
Document.createElement(String).
createElement in interface DocumentDOMExceptionpublic DocumentFragment createDocumentFragment()
Document.createDocumentFragment().
createDocumentFragment in interface Documentpublic Text createTextNode(String data)
Document.createTextNode(String).
createTextNode in interface Documentpublic Comment createComment(String data)
Document.createComment(String).
createComment in interface Document
public CDATASection createCDATASection(String data)
throws DOMException
Document.createCDATASection(String)
createCDATASection in interface DocumentDOMException
public ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
Document.createProcessingInstruction(String,String).
createProcessingInstruction in interface DocumentDOMException
public Attr createAttribute(String name)
throws DOMException
Document.createAttribute(String).
createAttribute in interface DocumentDOMException
public EntityReference createEntityReference(String name)
throws DOMException
Document.createEntityReference(String).
createEntityReference in interface DocumentDOMException
public Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
Document.createAttributeNS(String,String).
createAttributeNS in interface DocumentDOMException
public Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
Document.createElementNS(String,String).
createElementNS in interface DocumentDOMExceptionpublic boolean isSVG12()
public void setIsSVG12(boolean b)
public boolean isId(Attr node)
isId in class AbstractDocumentpublic void setSVGContext(SVGContext ctx)
ctx - the SVG contextpublic SVGContext getSVGContext()
public void addCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
addCSSNavigableDocumentListener in interface CSSNavigableDocumentpublic void removeCSSNavigableDocumentListener(CSSNavigableDocumentListener l)
removeCSSNavigableDocumentListener in interface CSSNavigableDocumentprotected AnimatedAttributeListener getAnimatedAttributeListener()
AnimatedAttributeListener for the document.
protected void overrideStyleTextChanged(CSSStylableElement e,
String text)
protected void overrideStylePropertyRemoved(CSSStylableElement e,
String name)
protected void overrideStylePropertyChanged(CSSStylableElement e,
String name,
String value,
String prio)
public void addAnimatedAttributeListener(AnimatedAttributeListener aal)
AnimatedAttributeListener to this document, to be
notified of animated XML attribute changes.
public void removeAnimatedAttributeListener(AnimatedAttributeListener aal)
AnimatedAttributeListener from this document.
public org.w3c.dom.css.CSSStyleDeclaration getOverrideStyle(Element elt,
String pseudoElt)
DocumentCSS.getOverrideStyle(Element,String).
getOverrideStyle in interface org.w3c.dom.css.DocumentCSSgetOverrideStyle in class AbstractStylableDocumentpublic boolean isReadonly()
isReadonly in interface ExtendedNodepublic void setReadonly(boolean v)
setReadonly in interface ExtendedNodeprotected Node newNode()
newNode in class AbstractNodeprotected Node copyInto(Node n)
copyInto in class AbstractDocumentn - a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto in class AbstractDocumentn - a node of the type of this.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||