|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
.
Inner Class Summary | |
protected static class |
SVGOMDocument.AElementFactory
To create a 'a' element. |
protected static class |
SVGOMDocument.AltGlyphDefElementFactory
To create a 'altGlyphDef' element. |
protected static class |
SVGOMDocument.AltGlyphElementFactory
To create a 'altGlyph' element. |
protected static class |
SVGOMDocument.AltGlyphItemElementFactory
To create a 'altGlyphItem' element. |
protected static class |
SVGOMDocument.AnimateColorElementFactory
To create a 'animateColor' element. |
protected static class |
SVGOMDocument.AnimateElementFactory
To create a 'animate' element. |
protected static class |
SVGOMDocument.AnimateMotionElementFactory
To create a 'animateMotion' element. |
protected static class |
SVGOMDocument.AnimateTransformElementFactory
To create a 'animateTransform' element. |
protected static class |
SVGOMDocument.CircleElementFactory
To create a 'circle' element. |
protected static class |
SVGOMDocument.ClipPathElementFactory
To create a 'clip-path' element. |
protected static class |
SVGOMDocument.ColorProfileElementFactory
To create a 'color-profile' element. |
protected static class |
SVGOMDocument.CursorElementFactory
To create a 'cursor' element. |
protected static class |
SVGOMDocument.DefinitionSrcElementFactory
To create a 'definition-src' element. |
protected static class |
SVGOMDocument.DefsElementFactory
To create a 'defs' element. |
protected static class |
SVGOMDocument.DescElementFactory
To create a 'desc' element. |
static interface |
SVGOMDocument.ElementFactory
This interface represents a factory of elements. |
protected static class |
SVGOMDocument.EllipseElementFactory
To create a 'ellipse' element. |
protected static class |
SVGOMDocument.FeBlendElementFactory
To create a 'feBlend' element. |
protected static class |
SVGOMDocument.FeColorMatrixElementFactory
To create a 'feColorMatrix' element. |
protected static class |
SVGOMDocument.FeComponentTransferElementFactory
To create a 'feComponentTransfer' element. |
protected static class |
SVGOMDocument.FeCompositeElementFactory
To create a 'feComposite' element. |
protected static class |
SVGOMDocument.FeConvolveMatrixElementFactory
To create a 'feConvolveMatrix' element. |
protected static class |
SVGOMDocument.FeDiffuseLightingElementFactory
To create a 'feDiffuseLighting' element. |
protected static class |
SVGOMDocument.FeDisplacementMapElementFactory
To create a 'feDisplacementMap' element. |
protected static class |
SVGOMDocument.FeDistantLightElementFactory
To create a 'feDistantLight' element. |
protected static class |
SVGOMDocument.FeFloodElementFactory
To create a 'feFlood' element. |
protected static class |
SVGOMDocument.FeFuncAElementFactory
To create a 'feFuncA' element. |
protected static class |
SVGOMDocument.FeFuncBElementFactory
To create a 'feFuncB' element. |
protected static class |
SVGOMDocument.FeFuncGElementFactory
To create a 'feFuncG' element. |
protected static class |
SVGOMDocument.FeFuncRElementFactory
To create a 'feFuncR' element. |
protected static class |
SVGOMDocument.FeGaussianBlurElementFactory
To create a 'feGaussianBlur' element. |
protected static class |
SVGOMDocument.FeImageElementFactory
To create a 'feImage' element. |
protected static class |
SVGOMDocument.FeMergeElementFactory
To create a 'feMerge' element. |
protected static class |
SVGOMDocument.FeMergeNodeElementFactory
To create a 'feMergeNode' element. |
protected static class |
SVGOMDocument.FeMorphologyElementFactory
To create a 'feMorphology' element. |
protected static class |
SVGOMDocument.FeOffsetElementFactory
To create a 'feOffset' element. |
protected static class |
SVGOMDocument.FePointLightElementFactory
To create a 'fePointLight' element. |
protected static class |
SVGOMDocument.FeSpecularLightingElementFactory
To create a 'feSpecularLighting' element. |
protected static class |
SVGOMDocument.FeSpotLightElementFactory
To create a 'feSpotLight' element. |
protected static class |
SVGOMDocument.FeTileElementFactory
To create a 'feTile' element. |
protected static class |
SVGOMDocument.FeTurbulenceElementFactory
To create a 'feTurbulence' element |
protected static class |
SVGOMDocument.FilterElementFactory
To create a 'filter' element. |
protected static class |
SVGOMDocument.FontElementFactory
To create a 'font' element. |
protected static class |
SVGOMDocument.FontFaceElementFactory
To create a 'font-face' element. |
protected static class |
SVGOMDocument.FontFaceFormatElementFactory
To create a 'font-face-format' element. |
protected static class |
SVGOMDocument.FontFaceNameElementFactory
To create a 'font-face-name' element. |
protected static class |
SVGOMDocument.FontFaceSrcElementFactory
To create a 'font-face-src' element. |
protected static class |
SVGOMDocument.FontFaceUriElementFactory
To create a 'font-face-uri' element. |
protected static class |
SVGOMDocument.ForeignObjectElementFactory
To create a 'foreignObject' element. |
protected static class |
SVGOMDocument.GElementFactory
To create a 'g' element. |
protected static class |
SVGOMDocument.GlyphElementFactory
To create a 'glyph' element. |
protected static class |
SVGOMDocument.GlyphRefElementFactory
To create a 'glyphRef' element. |
protected static class |
SVGOMDocument.HkernElementFactory
To create a 'hkern' element. |
protected static class |
SVGOMDocument.ImageElementFactory
To create a 'image' element. |
protected static class |
SVGOMDocument.LinearGradientElementFactory
To create a 'linearGradient' element. |
protected static class |
SVGOMDocument.LineElementFactory
To create a 'line' element. |
protected static class |
SVGOMDocument.MarkerElementFactory
To create a 'marker' element. |
protected static class |
SVGOMDocument.MaskElementFactory
To create a 'mask' element. |
protected static class |
SVGOMDocument.MetadataElementFactory
To create a 'metadata' element. |
protected static class |
SVGOMDocument.MissingGlyphElementFactory
To create a 'missing-glyph' element. |
protected static class |
SVGOMDocument.MpathElementFactory
To create a 'mpath' element. |
protected static class |
SVGOMDocument.PathElementFactory
To create a 'path' element. |
protected static class |
SVGOMDocument.PatternElementFactory
To create a 'pattern' element. |
protected static class |
SVGOMDocument.PolygonElementFactory
To create a 'polygon' element. |
protected static class |
SVGOMDocument.PolylineElementFactory
To create a 'polyline' element. |
protected static class |
SVGOMDocument.RadialGradientElementFactory
To create a 'radialGradient' element. |
protected static class |
SVGOMDocument.RectElementFactory
To create a 'rect' element. |
protected static class |
SVGOMDocument.ScriptElementFactory
To create a 'script' element. |
protected static class |
SVGOMDocument.SetElementFactory
To create a 'set' element. |
protected static class |
SVGOMDocument.StopElementFactory
To create a 'stop' element. |
protected static class |
SVGOMDocument.StyleElementFactory
To create a 'style' element. |
protected static class |
SVGOMDocument.SvgElementFactory
To create an 'svg' element. |
protected static class |
SVGOMDocument.SwitchElementFactory
To create a 'switch' element. |
protected static class |
SVGOMDocument.SymbolElementFactory
To create a 'symbol' element. |
protected static class |
SVGOMDocument.TextElementFactory
To create a 'text' element. |
protected static class |
SVGOMDocument.TextPathElementFactory
To create a 'textPath' element. |
protected static class |
SVGOMDocument.TitleElementFactory
To create a 'title' element. |
protected static class |
SVGOMDocument.TrefElementFactory
To create a 'tref' element. |
protected static class |
SVGOMDocument.TspanElementFactory
To create a 'tspan' element. |
protected static class |
SVGOMDocument.UseElementFactory
To create a 'use' element. |
protected static class |
SVGOMDocument.ViewElementFactory
To create a 'view' element. |
protected static class |
SVGOMDocument.VkernElementFactory
To create a 'vkern' element. |
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode |
AbstractParentNode.ChildNodes, AbstractParentNode.Nodes |
Field Summary | |
protected SVGContext |
context
The document context. |
protected HashTable |
customFactories
The custom elements factories. |
protected AbstractView |
defaultView
The default view. |
protected HashTable |
factories
The SVG element factories. |
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 |
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 | |
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) . |
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. |
AbstractView |
getDefaultView()
DOM: Implements DocumentView.getDefaultView() . |
java.lang.String |
getDomain()
DOM: Implements SVGDocument.getDomain() . |
static java.util.List |
getDomExtensions()
|
Element |
getElementById(java.lang.String elementId)
DOM: Implements Document.getElementById(String) . |
boolean |
getEventsEnabled()
Tests whether the event dispatching must be done. |
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() . |
protected static void |
getStyleSheets(Node n,
DOMStyleSheetList l)
An auxiliary method for getStyleSheets. |
SVGContext |
getSVGContext()
Returns this document context. |
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 |
registerCustomElementFactory(java.lang.String namespaceURI,
java.lang.String localName,
SVGOMDocument.ElementFactory factory)
Allows the user to register a new element factory. |
protected void |
registerExtensions()
|
void |
setEventsEnabled(boolean b)
Sets the eventsEnabled property. |
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 |
setSVGContext(SVGContext ctx)
Sets the document context. |
void |
setURLObject(java.net.URL url)
Sets the URI of the document. |
Methods inherited from class org.apache.batik.dom.AbstractDocument |
checkChildType, cloneNode, copyInto, createEvent, createNodeIterator, createTreeWalker, deepCopyInto, deepExport, detachNodeIterator, export, getCurrentDocument, getDoctype, getDocumentElement, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLocale, getNodeName, getNodeType, importNode, nodeToBeRemoved, setDoctype |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, 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 LocalizableSupport localizableSupport
protected HashTable factories
protected HashTable customFactories
protected java.net.URL url
protected boolean readonly
protected AbstractView defaultView
protected SVGContext context
protected java.lang.String referrer
Constructor Detail |
protected SVGOMDocument()
public SVGOMDocument(DocumentType dt, DOMImplementation impl)
Method Detail |
protected void registerExtensions()
public void registerCustomElementFactory(java.lang.String namespaceURI, java.lang.String localName, SVGOMDocument.ElementFactory factory)
protected Node newNode()
newNode
in class AbstractNode
public SVGContext getSVGContext()
public void setSVGContext(SVGContext ctx)
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.setLocale
in class AbstractDocument
org.apache.batik.i18n.Localizable
l
- 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 class AbstractDocument
org.apache.batik.i18n.Localizable
key
- 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 SVGDocument
public java.lang.String getReferrer()
SVGDocument.getReferrer()
.getReferrer
in interface SVGDocument
public void setReferrer(java.lang.String s)
public java.lang.String getDomain()
SVGDocument.getDomain()
.getDomain
in interface SVGDocument
public SVGSVGElement getRootElement()
SVGDocument.getRootElement()
.getRootElement
in interface SVGDocument
public java.lang.String getURL()
SVGDocument.getURL()
getURL
in interface SVGDocument
public java.net.URL getURLObject()
public void setURLObject(java.net.URL url)
public Element getElementById(java.lang.String elementId)
Document.getElementById(String)
.getElementById
in interface Document
org.w3c.dom.Document
elementIdThe
- unique id
value for an element.protected static Element getById(java.lang.String id, Node node)
public Element createElement(java.lang.String tagName) throws DOMException
Document.createElement(String)
.createElement
in interface Document
org.w3c.dom.Document
tagNameThe
- name of the element type to instantiate. For XML,
this is case-sensitive. For HTML, the tagName
parameter may be provided in any case, but it must be mapped to the
canonical uppercase form by the DOM implementation.Element
object with the
nodeName
attribute set to tagName
, and
localName
, prefix
, and
namespaceURI
set to null
.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.public DocumentFragment createDocumentFragment()
Document.createDocumentFragment()
.createDocumentFragment
in interface Document
org.w3c.dom.Document
DocumentFragment
.public Text createTextNode(java.lang.String data)
Document.createTextNode(String)
.createTextNode
in interface Document
org.w3c.dom.Document
dataThe
- data for the node.Text
object.public Comment createComment(java.lang.String data)
Document.createComment(String)
.createComment
in interface Document
org.w3c.dom.Document
dataThe
- data for the node.Comment
object.public CDATASection createCDATASection(java.lang.String data) throws DOMException
Document.createCDATASection(String)
createCDATASection
in interface Document
org.w3c.dom.Document
dataThe
- data for the CDATASection
contents.CDATASection
object.DOMException
- NOT_SUPPORTED_ERR: Raised if this document is an HTML document.public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
Document.createProcessingInstruction(String,String)
.createProcessingInstruction
in interface Document
public Attr createAttribute(java.lang.String name) throws DOMException
Document.createAttribute(String)
.createAttribute
in interface Document
org.w3c.dom.Document
nameThe
- name of the attribute.Attr
object with the nodeName
attribute set to name
, and localName
,
prefix
, and namespaceURI
set to
null
. The value of the attribute is the empty string.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.public EntityReference createEntityReference(java.lang.String name) throws DOMException
Document.createEntityReference(String)
.createEntityReference
in interface Document
org.w3c.dom.Document
nameThe
- name of the entity to reference.EntityReference
object.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createAttributeNS(String,String)
.createAttributeNS
in interface Document
org.w3c.dom.Document
namespaceURIThe
- namespace URI of the attribute to create.qualifiedNameThe
- qualified name of the attribute to instantiate.Attr
object with the following attributes:
AttributeValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted from
qualifiedName
, or null
if there is no
prefixNode.localName
local name, extracted from
qualifiedName
Attr.name
qualifiedName
Node.nodeValue
the empty
stringDOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
qualifiedName
is
malformed, if the qualifiedName
has a prefix and the
namespaceURI
is null
, if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace", or if the
qualifiedName
is "xmlns" and the
namespaceURI
is different from "
http://www.w3.org/2000/xmlns/".public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createElementNS(String,String)
.createElementNS
in interface Document
org.w3c.dom.Document
namespaceURIThe
- namespace URI of the element to create.qualifiedNameThe
- qualified name of the element type to
instantiate.Element
object with the following
attributes:AttributeValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted
from qualifiedName
, or null
if there is
no prefixNode.localName
local name, extracted from
qualifiedName
Element.tagName
qualifiedName
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
qualifiedName
is
malformed, if the qualifiedName
has a prefix and the
namespaceURI
is null
, or if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace" .public boolean getEventsEnabled()
getEventsEnabled
in class AbstractDocument
public void setEventsEnabled(boolean b)
setEventsEnabled
in class AbstractDocument
public boolean isReadonly()
public void setReadonly(boolean v)
public StyleSheetList getStyleSheets()
DocumentStyle.getStyleSheets()
.getStyleSheets
in interface DocumentStyle
protected static void getStyleSheets(Node n, DOMStyleSheetList l)
public AbstractView getDefaultView()
DocumentView.getDefaultView()
.getDefaultView
in interface DocumentView
public CSSStyleDeclaration getOverrideStyle(Element elt, java.lang.String pseudoElt)
DocumentCSS.getOverrideStyle(Element,String)
.getOverrideStyle
in interface DocumentCSS
org.w3c.dom.css.DocumentCSS
elt
- The element whose style is to be modified. This parameter
cannot be null.pseudoElt
- The pseudo-element or null
if none.public static java.util.List getDomExtensions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |