com.aspose.html.dom.svg

Class SVGElement

    • Constructor Detail

      • SVGElement

        public SVGElement(com.aspose.html.dom.DOMName name,
                          Document doc)

        Initializes a new instance of the SVGElement class.

        Parameters:
        name - The element name.
        doc - The document.
    • Method Detail

      • getSVGContext

        public com.aspose.html.dom.svg.SVGContext getSVGContext()
      • isReadOnly

        public boolean isReadOnly()

        Gets a value indicating whether the SVGObject is read-only.

        Value: true if this SVGObject is read only; otherwise, false.
      • isRendered

        public boolean isRendered()
      • addSVGAttributeBinding

        public void addSVGAttributeBinding(com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding binding)
      • getSVGAttributeBindings

        public com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.html.dom.svg.datatypes.propertymakers.ISVGProperyBinding> getSVGAttributeBindings()
      • getId_SVGElement_New

        @DOMNameAttribute(name="id")
        public String getId_SVGElement_New()

        The value of the ‘id’ attribute on the given element, or the empty string if ‘id’ is not present.

        Throws:
        DOMException - Code NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute. Value: The identifier.
      • setId_SVGElement_New

        @DOMNameAttribute(name="id")
        public void setId_SVGElement_New(String value)

        The value of the ‘id’ attribute on the given element, or the empty string if ‘id’ is not present.

        Throws:
        DOMException - Code NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute. Value: The identifier.
      • getOwnerSVGElement

        @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.
      • getViewportElement

        @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.
      • getClassName_SVGElement_New

        @DOMNameAttribute(name="className")
        public SVGAnimatedString getClassName_SVGElement_New()

        Corresponds to attribute ‘class’ on the given element.

        Value: The name of the class.
      • getStyle

        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.
        Specified by:
        getStyle in interface IElementCSSInlineStyle
      • getTabIndex

        @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.

      • setTabIndex

        @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.