com.aspose.html.dom.svg

Class SVGGeometryElement

    • Constructor Detail

      • SVGGeometryElement

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

        Initializes a new instance of the SVGGeometryElement class.

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

      • getPathLength

        @DOMNameAttribute(name="pathLength")
        public SVGAnimatedNumber getPathLength()

        Corresponds to attribute pathLength on the given element.

        Value: The attribute pathLength on the given element.
      • getTotalLength

        @DOMNameAttribute(name="getTotalLength")
        public float getTotalLength()

        Returns the user agent's computed value for the total length of the path using the user agent's distance-along-a-path algorithm, as a distance in the current user coordinate system.

        Returns:
        The total length of the path.
      • getPointAtLength

        @DOMNameAttribute(name="getPointAtLength")
        public SVGPoint getPointAtLength(float distance)

        Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.

        Parameters:
        distance - The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.
        Returns:
        The returned point in user space.
      • isPointInFill

        @DOMNameAttribute(name="isPointInFill")
        public boolean isPointInFill(SVGPoint point)

        Determine whether a given point is within the fill shape of an element.

        Parameters:
        point - Tested point.
        Returns:
        True if point is within the fill shape, false otherwise.
      • isPointInStroke

        @DOMNameAttribute(name="isPointInStroke")
        public boolean isPointInStroke(SVGPoint point)

        Determine whether a given point is within the stroke shape of an element.

        Parameters:
        point - Tested point.
        Returns:
        True if point is within the stroke shape, false otherwise.