|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--org.apache.batik.dom.AbstractNode
|
+--org.apache.batik.dom.AbstractParentNode
|
+--org.apache.batik.dom.AbstractDocument
|
+--org.apache.batik.dom.svg.SVGOMDocument
This class implements SVGDocument.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| Field Summary | |
|---|---|
protected CSSEngine |
cssEngine
The CSS engine. |
protected AbstractView |
defaultView
The default view. |
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages. |
protected boolean |
readonly
Is this document immutable? |
protected java.lang.String |
referrer
The string representing the referrer. |
protected static java.lang.String |
RESOURCES
The error messages bundle class name. |
protected java.net.URL |
url
The url of the document. |
| Fields inherited from class org.apache.batik.dom.AbstractDocument |
|---|
documentEventSupport, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, traversalSupport |
| Fields inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
childNodes |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
|---|
EMPTY_NODE_LIST, eventSupport, ownerDocument |
| 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 |
| Constructor Summary | |
|---|---|
protected |
SVGOMDocument()
Creates a new uninitialized document. |
|
SVGOMDocument(DocumentType dt,
DOMImplementation impl)
Creates a new document. |
| Method Summary | |
|---|---|
void |
clearViewCSS()
Clears the view CSS. |
protected Node |
copyInto(Node n)
Copy the fields of the current node into the given node. |
Attr |
createAttribute(java.lang.String name)
DOM: Implements Document#createAttribute(String). |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements Document#createAttributeNS(String,String). |
CDATASection |
createCDATASection(java.lang.String data)
DOM: Implements Document#createCDATASection(String) |
Comment |
createComment(java.lang.String data)
DOM: Implements Document#createComment(String). |
DocumentFragment |
createDocumentFragment()
DOM: Implements Document#createDocumentFragment(). |
Element |
createElement(java.lang.String tagName)
DOM: Implements Document#createElement(String). |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements Document#createElementNS(String,String). |
EntityReference |
createEntityReference(java.lang.String name)
DOM: Implements Document#createEntityReference(String). |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
DOM: Implements Document#createProcessingInstruction(String,String). |
Text |
createTextNode(java.lang.String data)
DOM: Implements Document#createTextNode(String). |
protected Node |
deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements Localizable#formatMessage(String,Object[]). |
protected static Element |
getById(java.lang.String id,
Node node)
An auxiliary method used by getElementById. |
CSSEngine |
getCSSEngine()
Returns the CSS engine. |
AbstractView |
getDefaultView()
DOM: Implements DocumentView.getDefaultView(). |
java.lang.String |
getDomain()
DOM: Implements SVGDocument.getDomain(). |
Element |
getElementById(java.lang.String elementId)
DOM: Implements Document#getElementById(String). |
CSSStyleDeclaration |
getOverrideStyle(Element elt,
java.lang.String pseudoElt)
DOM: Implements DocumentCSS.getOverrideStyle(Element,String). |
java.lang.String |
getReferrer()
DOM: Implements SVGDocument.getReferrer(). |
SVGSVGElement |
getRootElement()
DOM: Implements SVGDocument.getRootElement(). |
StyleSheetList |
getStyleSheets()
DOM: Implements DocumentStyle.getStyleSheets(). |
java.lang.String |
getTitle()
DOM: Implements SVGDocument.getTitle(). |
java.lang.String |
getURL()
DOM: Implements SVGDocument.getURL() |
java.net.URL |
getURLObject()
Returns the URI of the document. |
boolean |
isReadonly()
Tests whether this node is readonly. |
protected Node |
newNode()
Returns a new uninitialized instance of this object's class. |
void |
setCSSEngine(CSSEngine ctx)
Sets the CSS engine. |
void |
setLocale(java.util.Locale l)
Implements Localizable#setLocale(Locale). |
void |
setReadonly(boolean v)
Sets this node readonly attribute. |
void |
setReferrer(java.lang.String s)
Sets the referrer string. |
void |
setURLObject(java.net.URL url)
Sets the URI of the document. |
| Methods inherited from class org.apache.batik.dom.AbstractDocument |
|---|
checkChildType, cloneNode, createEvent, createNodeIterator, createTreeWalker, deepExport, detachNodeIterator, export, getCurrentDocument, getDoctype, getDocumentElement, getElementsByTagName, getElementsByTagNameNS, getEventsEnabled, getImplementation, getLocale, getNodeName, getNodeType, importNode, nodeToBeRemoved, putElementsByTagName, putElementsByTagNameNS, setDoctype, setEventsEnabled |
| Methods inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChild |
| Methods inherited from class org.apache.batik.dom.AbstractNode |
|---|
addEventListener, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, getAttributes, getEventSupport, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, hasAttributes, isSupported, removeEventListener, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified |
| 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 |
|---|
getDoctype, getDocumentElement, 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 |
| Methods inherited from interface org.w3c.dom.events.DocumentEvent |
|---|
createEvent |
| Field Detail |
protected static final java.lang.String RESOURCES
protected transient LocalizableSupport localizableSupport
protected java.lang.String referrer
protected java.net.URL url
protected transient boolean readonly
protected transient AbstractView defaultView
protected transient CSSEngine cssEngine
| Constructor Detail |
protected SVGOMDocument()
public SVGOMDocument(DocumentType dt,
DOMImplementation impl)
| Method Detail |
public void setCSSEngine(CSSEngine ctx)
public CSSEngine getCSSEngine()
public void setLocale(java.util.Locale l)
Localizable#setLocale(Locale).
setLocale in interface LocalizablesetLocale in class AbstractDocumentl - The locale to set.
public java.lang.String formatMessage(java.lang.String key,
java.lang.Object[] args)
throws java.util.MissingResourceException
Localizable#formatMessage(String,Object[]).
formatMessage in interface LocalizableformatMessage in class AbstractDocumentkey - The key used to retreive the message from the resource
bundle.args - The objects that compose the message.
java.util.MissingResourceException - if the key is not in the bundle.public java.lang.String getTitle()
SVGDocument.getTitle().
getTitle in interface SVGDocumentpublic java.lang.String getReferrer()
SVGDocument.getReferrer().
getReferrer in interface SVGDocumentpublic void setReferrer(java.lang.String s)
public java.lang.String getDomain()
SVGDocument.getDomain().
getDomain in interface SVGDocumentpublic SVGSVGElement getRootElement()
SVGDocument.getRootElement().
getRootElement in interface SVGDocumentpublic java.lang.String getURL()
SVGDocument.getURL()
getURL in interface SVGDocumentpublic java.net.URL getURLObject()
public void setURLObject(java.net.URL url)
public Element createElement(java.lang.String tagName)
throws DOMException
Document#createElement(String).
createElement in interface DocumentDOMExceptionpublic DocumentFragment createDocumentFragment()
Document#createDocumentFragment().
createDocumentFragment in interface Documentpublic Text createTextNode(java.lang.String data)
Document#createTextNode(String).
createTextNode in interface Documentpublic Comment createComment(java.lang.String data)
Document#createComment(String).
createComment in interface Document
public CDATASection createCDATASection(java.lang.String data)
throws DOMException
Document#createCDATASection(String)
createCDATASection in interface DocumentDOMException
public ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws DOMException
Document#createProcessingInstruction(String,String).
createProcessingInstruction in interface DocumentDOMException
public Attr createAttribute(java.lang.String name)
throws DOMException
Document#createAttribute(String).
createAttribute in interface DocumentDOMException
public EntityReference createEntityReference(java.lang.String name)
throws DOMException
Document#createEntityReference(String).
createEntityReference in interface DocumentDOMException
public Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
Document#createAttributeNS(String,String).
createAttributeNS in interface DocumentDOMException
public Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
Document#createElementNS(String,String).
createElementNS in interface DocumentDOMExceptionpublic Element getElementById(java.lang.String elementId)
Document#getElementById(String).
getElementById in interface Document
protected static Element getById(java.lang.String id,
Node node)
public boolean isReadonly()
isReadonly in interface ExtendedNodepublic void setReadonly(boolean v)
setReadonly in interface ExtendedNodepublic StyleSheetList getStyleSheets()
DocumentStyle.getStyleSheets().
getStyleSheets in interface DocumentStylepublic AbstractView getDefaultView()
DocumentView.getDefaultView().
getDefaultView in interface DocumentViewpublic void clearViewCSS()
public CSSStyleDeclaration getOverrideStyle(Element elt,
java.lang.String pseudoElt)
DocumentCSS.getOverrideStyle(Element,String).
getOverrideStyle in interface DocumentCSSprotected 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 | |||||||||||