@DOMObjectAttribute @DOMNameAttribute(name="SVGElement") public class SVGElement extends Element implements IElementCSSInlineStyle
All of the SVG DOM interfaces that correspond directly to elements in the SVG language (such as the SVGPathElement interface for the 'path’ element) derive from the SVGElement interface.
Element
Node.Flags
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
SVGElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the
SVGElement class. |
Modifier and Type | Method and Description |
---|---|
void |
addSVGAttributeBinding(com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding binding) |
void |
blur()
Removes keyboard focus from this element.
|
void |
focus()
Gives keyboard focus to this element.
|
SVGAnimatedString |
getClassName_SVGElement_New()
Corresponds to attribute 'class’ on the given element.
|
java.lang.String |
getId_SVGElement_New()
The value of the 'id’ attribute on the given element, or the empty string if 'id’ is not present.
|
SVGSVGElement |
getOwnerSVGElement()
The nearest ancestor 'svg’ element.
|
ICSSStyleDeclaration |
getStyle()
Corresponds to attribute 'style’ on the given element.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding> |
getSVGAttributeBindings() |
com.aspose.html.dom.svg.SVGContext |
getSVGContext() |
long |
getTabIndex()
Index that represents the element's position in the tabbing order.
|
SVGElement |
getViewportElement()
The element which established the current viewport.
|
boolean |
isReadOnly()
Gets a value indicating whether the SVGObject is read-only.
|
boolean |
isRendered() |
void |
setId_SVGElement_New(java.lang.String value)
The value of the 'id’ attribute on the given element, or the empty string if 'id’ is not present.
|
void |
setTabIndex(long value)
Index that represents the element's position in the tabbing order.
|
attachShadow, dispose, equals, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassName, getComputedStyle, getComputedStyle, getData, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNodeName, getNodeType, getOuterHTML, getPrefix, getPreviousElementSibling, getSchemaTypeInfo, getShadowRoot, getStyleContainer, getTag, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setData, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setOuterHTML, setTextContent
adoptNode, appendChild, cloneNode, deepClone, finalize, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRegisteredObservers, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGElement(com.aspose.html.dom.DOMName name, Document doc)
Initializes a new instance of the SVGElement
class.
name
- The element name.doc
- The document.public com.aspose.html.dom.svg.SVGContext getSVGContext()
public boolean isReadOnly()
Gets a value indicating whether the SVGObject is read-only.
Value:true
if this SVGObject is read only; otherwise, false
.public boolean isRendered()
public void addSVGAttributeBinding(com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding binding)
public com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding> getSVGAttributeBindings()
@DOMNameAttribute(name="id") public java.lang.String getId_SVGElement_New()
The value of the 'id’ attribute on the given element, or the empty string if 'id’ is not present.
DOMException
- Code NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.
Value:
The identifier.@DOMNameAttribute(name="id") public void setId_SVGElement_New(java.lang.String value)
The value of the 'id’ attribute on the given element, or the empty string if 'id’ is not present.
DOMException
- Code NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.
Value:
The identifier.@DOMNameAttribute(name="ownerSVGElement") public SVGSVGElement getOwnerSVGElement()
The nearest ancestor 'svg’ element. Null if the given element is the outermost svg element.
Value: The owner SVG element.@DOMNameAttribute(name="viewportElement") public SVGElement getViewportElement()
The element which established the current viewport. Often, the nearest ancestor 'svg’ element. Null if the given element is the outermost svg element.
Value: The viewport element.@DOMNameAttribute(name="className") public SVGAnimatedString getClassName_SVGElement_New()
Corresponds to attribute 'class’ on the given element.
Value: The name of the class.public ICSSStyleDeclaration getStyle()
Corresponds to attribute 'style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
Value: The style.getStyle
in interface IElementCSSInlineStyle
@DOMNameAttribute(name="tabIndex") public long getTabIndex()
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.01.
@DOMNameAttribute(name="tabIndex") public void setTabIndex(long value)
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.01.
@DOMNameAttribute(name="focus") public void focus()
Gives keyboard focus to this element.
@DOMNameAttribute(name="blur") public void blur()
Removes keyboard focus from this element.