com.aspose.html.dom.svg

Class SVGPathElement

    • Constructor Detail

      • SVGPathElement

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

      • getPathSegList

        public SVGPathSegList getPathSegList()

        Provides access to the base (i.e., static) contents of the ‘d’ attribute in a form which matches one-for-one with SVG's syntax. Thus, if the ‘d’ attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then pathSegList will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.

        Value: The path segment list.
        Specified by:
        getPathSegList in interface ISVGAnimatedPathData
      • getAnimatedPathSegList

        public SVGPathSegList getAnimatedPathSegList()

        Provides access to the current animated contents of the ‘d’ attribute in a form which matches one-for-one with SVG's syntax. If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as pathSegList.

        Value: The animated path segment list.
        Specified by:
        getAnimatedPathSegList in interface ISVGAnimatedPathData
      • getPathSegAtLength

        @DOMNameAttribute(name="getPathSegAtLength")
        public long getPathSegAtLength(float distance)

        Returns the index into pathSegList 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 index of the path segment, where the first path segment is number 0.
      • createSVGPathSegClosePath

        @DOMNameAttribute(name="createSVGPathSegClosePath")
        public SVGPathSegClosePath createSVGPathSegClosePath()

        Returns a stand-alone, parentless SVGPathSegClosePath object.

        Returns:
        A stand-alone, parentless SVGPathSegClosePath object.
      • createSVGPathSegMovetoAbs

        @DOMNameAttribute(name="createSVGPathSegMovetoAbs")
        public SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x,
                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegMovetoAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegMovetoAbs object.
      • createSVGPathSegMovetoRel

        @DOMNameAttribute(name="createSVGPathSegMovetoRel")
        public SVGPathSegMovetoRel createSVGPathSegMovetoRel(float x,
                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegMovetoRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegMovetoRel object.
      • createSVGPathSegLinetoAbs

        @DOMNameAttribute(name="createSVGPathSegLinetoAbs")
        public SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x,
                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegLinetoAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoAbs object.
      • createSVGPathSegLinetoRel

        @DOMNameAttribute(name="createSVGPathSegLinetoRel")
        public SVGPathSegLinetoRel createSVGPathSegLinetoRel(float x,
                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegLinetoRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoRel object.
      • createSVGPathSegCurvetoCubicAbs

        @DOMNameAttribute(name="createSVGPathSegCurvetoCubicAbs")
        public SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x,
                                                                                                                                    float y,
                                                                                                                                    float x1,
                                                                                                                                    float y1,
                                                                                                                                    float x2,
                                                                                                                                    float y2)

        Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        x1 - The absolute X coordinate for the first control point.
        y1 - The absolute Y coordinate for the first control point.
        x2 - The absolute X coordinate for the second control point.
        y2 - The absolute Y coordinate for the second control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoCubicAbs object.
      • createSVGPathSegCurvetoCubicRel

        @DOMNameAttribute(name="createSVGPathSegCurvetoCubicRel")
        public SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x,
                                                                                                                                    float y,
                                                                                                                                    float x1,
                                                                                                                                    float y1,
                                                                                                                                    float x2,
                                                                                                                                    float y2)

        Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        x1 - The relative X coordinate for the first control point.
        y1 - The relative Y coordinate for the first control point.
        x2 - The relative X coordinate for the second control point.
        y2 - The relative Y coordinate for the second control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoCubicRel object.
      • createSVGPathSegCurvetoQuadraticAbs

        @DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticAbs")
        public SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x,
                                                                                                                                                float y,
                                                                                                                                                float x1,
                                                                                                                                                float y1)

        Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        x1 - The absolute X coordinate for the first control point.
        y1 - The absolute Y coordinate for the first control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.
      • createSVGPathSegCurvetoQuadraticRel

        @DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticRel")
        public SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x,
                                                                                                                                                float y,
                                                                                                                                                float x1,
                                                                                                                                                float y1)

        Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        x1 - The relative X coordinate for the first control point.
        y1 - The relative Y coordinate for the first control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.
      • createSVGPathSegArcAbs

        @DOMNameAttribute(name="createSVGPathSegArcAbs")
        public SVGPathSegArcAbs createSVGPathSegArcAbs(float x,
                                                                                                         float y,
                                                                                                         float r1,
                                                                                                         float r2,
                                                                                                         float angle,
                                                                                                         boolean largeArcFlag,
                                                                                                         boolean sweepFlag)

        Returns a stand-alone, parentless SVGPathSegArcAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        r1 - The x-axis radius for the ellipse (i.e., r1).
        r2 - The y-axis radius for the ellipse (i.e., r2).
        angle - The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
        largeArcFlag - The value of the large-arc-flag parameter.
        sweepFlag - The value of the large-arc-flag parameter.
        Returns:
        A stand-alone, parentless SVGPathSegArcAbs object.
      • createSVGPathSegArcRel

        @DOMNameAttribute(name="createSVGPathSegArcRel")
        public SVGPathSegArcRel createSVGPathSegArcRel(float x,
                                                                                                         float y,
                                                                                                         float r1,
                                                                                                         float r2,
                                                                                                         float angle,
                                                                                                         boolean largeArcFlag,
                                                                                                         boolean sweepFlag)

        Returns a stand-alone, parentless SVGPathSegArcRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        r1 - The x-axis radius for the ellipse (i.e., r1).
        r2 - The y-axis radius for the ellipse (i.e., r2).
        angle - The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
        largeArcFlag - The value of the large-arc-flag parameter.
        sweepFlag - The value of the large-arc-flag parameter.
        Returns:
        A stand-alone, parentless SVGPathSegArcRel object.
      • createSVGPathSegLinetoHorizontalAbs

        @DOMNameAttribute(name="createSVGPathSegLinetoHorizontalAbs")
        public SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)

        Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
      • createSVGPathSegLinetoHorizontalRel

        @DOMNameAttribute(name="createSVGPathSegLinetoHorizontalRel")
        public SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)

        Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
      • createSVGPathSegLinetoVerticalAbs

        @DOMNameAttribute(name="createSVGPathSegLinetoVerticalAbs")
        public SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)

        Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.

        Parameters:
        y - The absolute Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
      • createSVGPathSegLinetoVerticalRel

        @DOMNameAttribute(name="createSVGPathSegLinetoVerticalRel")
        public SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)

        Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.

        Parameters:
        y - The relative Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegLinetoVerticalRel object.
      • createSVGPathSegCurvetoCubicSmoothAbs

        @DOMNameAttribute(name="createSVGPathSegCurvetoCubicSmoothAbs")
        public SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x,
                                                                                                                                                      float y,
                                                                                                                                                      float x2,
                                                                                                                                                      float y2)

        Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        x2 - The absolute X coordinate for the second control point.
        y2 - The absolute Y coordinate for the second control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.
      • createSVGPathSegCurvetoCubicSmoothRel

        @DOMNameAttribute(name="createSVGPathSegCurvetoCubicSmoothRel")
        public SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x,
                                                                                                                                                      float y,
                                                                                                                                                      float x2,
                                                                                                                                                      float y2)

        Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        x2 - The relative X coordinate for the second control point.
        y2 - The relative Y coordinate for the second control point.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.
      • createSVGPathSegCurvetoQuadraticSmoothAbs

        @DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticSmoothAbs")
        public SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x,
                                                                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.

        Parameters:
        x - The absolute X coordinate for the end point of this path segment.
        y - The absolute Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.
      • createSVGPathSegCurvetoQuadraticSmoothRel

        @DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticSmoothRel")
        public SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x,
                                                                                                                                                                  float y)

        Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.

        Parameters:
        x - The relative X coordinate for the end point of this path segment.
        y - The relative Y coordinate for the end point of this path segment.
        Returns:
        A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.