com.aspose.html.dom.svg

Class SVGViewElement

    • Constructor Detail

      • SVGViewElement

        public SVGViewElement(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

      • getViewBox

        public SVGAnimatedRect getViewBox()

        Corresponds to attribute ‘viewBox’ on the given element.

        Value: The ‘viewBox’ of the given element.
        Specified by:
        getViewBox in interface ISVGFitToViewBox
      • getZoomAndPan

        public int getZoomAndPan()

        Corresponds to attribute ‘zoomAndPan’ on the given element. The value must be one of the SVG_ZOOMANDPAN_* constants defined on this interface.

        Specified by:
        getZoomAndPan in interface ISVGZoomAndPan
        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute. Value: The zoom and pan.
      • setZoomAndPan

        public void setZoomAndPan(int value)

        Corresponds to attribute ‘zoomAndPan’ on the given element. The value must be one of the SVG_ZOOMANDPAN_* constants defined on this interface.

        Specified by:
        setZoomAndPan in interface ISVGZoomAndPan
        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute. Value: The zoom and pan.
      • getViewTarget

        @DOMNameAttribute(name="viewTarget")
        public SVGStringList getViewTarget()

        Corresponds to attribute ‘viewTarget’ on the given ‘view’ element. A list of DOMString values which contain the names listed in the ‘viewTarget’ attribute. Each of the DOMString values can be associated with the corresponding element using the getElementById() method call.

        Value: The attribute ‘viewTarget’ of the given ‘view’ element.