com.aspose.html.dom.svg

Class SVGGraphicsElement

    • Constructor Detail

      • SVGGraphicsElement

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

        Initializes a new instance of the SVGGraphicsElement class.

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

      • getNearestViewportElement

        @DOMNameAttribute(name="nearestViewportElement")
        public SVGElement getNearestViewportElement()

        The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the current element is the outermost svg element.

        Value: The nearest viewport element.
      • getFarthestViewportElement

        @DOMNameAttribute(name="farthestViewportElement")
        public SVGElement getFarthestViewportElement()

        The farthest ancestor ‘svg’ element. Null if the current element is the outermost svg element.

        Value: The farthest viewport element.
      • getBBox

        @DOMNameAttribute(name="getBBox")
        public SVGRect getBBox()

        Returns the tight bounding box in current user space (i.e., after application of the ‘transform’ attribute, if any) on the geometry of all contained graphics elements, exclusive of stroking, clipping, masking and filter effects). Note that getBBox must return the actual bounding box at the time the method was called, even in case the element has not yet been rendered.

        Returns:
        An SVGRect object that defines the bounding box.
      • getCTM

        @DOMNameAttribute(name="getCTM")
        public SVGMatrix getCTM()

        Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the viewport coordinate system for the nearestViewportElement.

        Returns:
        An SVGMatrix object that defines the CTM.
      • getScreenCTM

        @DOMNameAttribute(name="getScreenCTM")
        public SVGMatrix getScreenCTM()

        Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the parent user agent's notice of a "pixel". For display devices, ideally this represents a physical screen pixel. For other devices or environments where physical pixel sizes are not known, then an algorithm similar to the CSS2 definition of a "pixel" can be used instead. Note that null is returned if this element is not hooked into the document tree. This method would have been more aptly named as getClientCTM, but the name getScreenCTM is kept for historical reasons.

        Returns:
        An SVGMatrix object that defines the given transformation matrix.
      • getRequiredFeatures

        public SVGStringList getRequiredFeatures()

        Corresponds to attribute ‘requiredFeatures’ on the given element.

        Value: The required features.
        Specified by:
        getRequiredFeatures in interface ISVGTests
      • getRequiredExtensions

        public SVGStringList getRequiredExtensions()

        Corresponds to attribute ‘requiredExtensions’ on the given element.

        Value: The required extensions.
        Specified by:
        getRequiredExtensions in interface ISVGTests
      • getSystemLanguage

        public SVGStringList getSystemLanguage()

        Corresponds to attribute ‘systemLanguage’ on the given element.

        Value: The system language.
        Specified by:
        getSystemLanguage in interface ISVGTests