public class SVGDocument
extends com.google.gwt.dom.client.Document
When an svg element is embedded inline as
a component of a document from another namespace, such as when an svg element is embedded inline within
an XHTML document [XHTML], then an SVGDocument
object will not exist; instead,
the root object in the document object hierarchy will be a Document object
of a different type, such as an HTMLDocument object.
However, an
SVGDocument
object will indeed exist
when the root element of the XML document hierarchy is an svg element, such as when viewing
a stand-alone SVG file (i.e., a file with MIME type "image/svg+xml"). In
this case, the SVGDocument
object will
be the root object of the document object model hierarchy.
In the
case where an SVG document is embedded by reference, such as when an XHTML
document has an 'object' element whose
'href' attribute references an SVG document
(i.e., a document whose MIME type is "image/svg+xml" and whose root element
is thus an svg element), there will exist two
distinct DOM hierarchies. The first DOM hierarchy will be for the referencing
document (e.g., an XHTML document). The second DOM hierarchy will be for
the referenced SVG document. In this second DOM hierarchy, the root object
of the document object model hierarchy is an SVGDocument
object.
The SVGDocument
interface
contains a similar list of attributes and methods to the HTMLDocument interface
described in the Document
Object Model (HTML) Level 1 chapter of the [DOM1]
specification.
Modifier | Constructor and Description |
---|---|
protected |
SVGDocument() |
Modifier and Type | Method and Description |
---|---|
SVGSVGElement |
getRootElement()
The root svg in the document hierarchy.
|
createAnchorElement, createAreaElement, createAudioElement, createBaseElement, createBlockQuoteElement, createBlurEvent, createBRElement, createButtonElement, createButtonInputElement, createCanvasElement, createCaptionElement, createChangeEvent, createCheckInputElement, createClickEvent, createColElement, createColGroupElement, createContextMenuEvent, createDblClickEvent, createDelElement, createDivElement, createDLElement, createElement, createErrorEvent, createFieldSetElement, createFileInputElement, createFocusEvent, createFormElement, createFrameElement, createFrameSetElement, createHeadElement, createHElement, createHiddenInputElement, createHRElement, createHtmlEvent, createIFrameElement, createImageElement, createImageInputElement, createInputEvent, createInsElement, createKeyCodeEvent, createKeyDownEvent, createKeyDownEvent, createKeyEvent, createKeyPressEvent, createKeyPressEvent, createKeyUpEvent, createKeyUpEvent, createLabelElement, createLegendElement, createLIElement, createLinkElement, createLoadEvent, createMapElement, createMetaElement, createMouseDownEvent, createMouseEvent, createMouseMoveEvent, createMouseOutEvent, createMouseOverEvent, createMouseUpEvent, createObjectElement, createOLElement, createOptGroupElement, createOptionElement, createParamElement, createPasswordInputElement, createPElement, createPreElement, createPushButtonElement, createQElement, createRadioInputElement, createResetButtonElement, createResetInputElement, createScriptElement, createScriptElement, createScrollEvent, createSelectElement, createSelectElement, createSourceElement, createSpanElement, createStyleElement, createSubmitButtonElement, createSubmitInputElement, createTableElement, createTBodyElement, createTDElement, createTextAreaElement, createTextInputElement, createTextNode, createTFootElement, createTHeadElement, createTHElement, createTitleElement, createTRElement, createULElement, createUniqueId, createVideoElement, enableScrolling, get, getBody, getBodyOffsetLeft, getBodyOffsetTop, getClientHeight, getClientWidth, getCompatMode, getDocumentElement, getDomain, getElementById, getElementsByTagName, getHead, getReferrer, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTitle, getURL, importNode, isCSS1Compat, setScrollLeft, setScrollTop, setTitle
appendChild, as, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, is, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
public final SVGSVGElement getRootElement()
Copyright © 2018. All Rights Reserved.