Interface SVGPathElement

All Superinterfaces:
Drawable, Element, EventTarget, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode, SVGAnimatedPathData, SVGElement, SVGExternalResourcesRequired, SVGLangSpace, SVGLocatable, SVGStylable, SVGTests, SVGTransformable
All Known Implementing Classes:
SVGPathElementImpl

SVGPathElement interface.

  • Method Details

    • getPathLength

      SVGAnimatedNumber getPathLength()

      getPathLength.

      Returns:
      a SVGAnimatedNumber object.
    • getTotalLength

      float getTotalLength()

      getTotalLength.

      Returns:
      a float.
    • getPointAtLength

      SVGPoint getPointAtLength(float distance)

      getPointAtLength.

      Parameters:
      distance - a float.
      Returns:
      a SVGPoint object.
    • getPathSegAtLength

      int getPathSegAtLength(float distance)

      getPathSegAtLength.

      Parameters:
      distance - a float.
      Returns:
      a Integer object.
    • createSVGPathSegClosePath

      SVGPathSegClosePath createSVGPathSegClosePath()

      createSVGPathSegClosePath.

      Returns:
      a SVGPathSegClosePath object.
    • createSVGPathSegMovetoAbs

      SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y)

      createSVGPathSegMovetoAbs.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegMovetoAbs object.
    • createSVGPathSegMovetoRel

      SVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y)

      createSVGPathSegMovetoRel.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegMovetoRel object.
    • createSVGPathSegLinetoAbs

      SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y)

      createSVGPathSegLinetoAbs.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegLinetoAbs object.
    • createSVGPathSegLinetoRel

      SVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y)

      createSVGPathSegLinetoRel.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegLinetoRel object.
    • createSVGPathSegCurvetoCubicAbs

      SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)

      createSVGPathSegCurvetoCubicAbs.

      Parameters:
      x - a float.
      y - a float.
      x1 - a float.
      y1 - a float.
      x2 - a float.
      y2 - a float.
      Returns:
      a SVGPathSegCurvetoCubicAbs object.
    • createSVGPathSegCurvetoCubicRel

      SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)

      createSVGPathSegCurvetoCubicRel.

      Parameters:
      x - a float.
      y - a float.
      x1 - a float.
      y1 - a float.
      x2 - a float.
      y2 - a float.
      Returns:
      a SVGPathSegCurvetoCubicRel object.
    • createSVGPathSegCurvetoQuadraticAbs

      SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)

      createSVGPathSegCurvetoQuadraticAbs.

      Parameters:
      x - a float.
      y - a float.
      x1 - a float.
      y1 - a float.
      Returns:
      a SVGPathSegCurvetoQuadraticAbs object.
    • createSVGPathSegCurvetoQuadraticRel

      SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)

      createSVGPathSegCurvetoQuadraticRel.

      Parameters:
      x - a float.
      y - a float.
      x1 - a float.
      y1 - a float.
      Returns:
      a SVGPathSegCurvetoQuadraticRel object.
    • createSVGPathSegArcAbs

      SVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)

      createSVGPathSegArcAbs.

      Parameters:
      x - a float.
      y - a float.
      r1 - a float.
      r2 - a float.
      angle - a float.
      largeArcFlag - a boolean.
      sweepFlag - a boolean.
      Returns:
      a SVGPathSegArcAbs object.
    • createSVGPathSegArcRel

      SVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)

      createSVGPathSegArcRel.

      Parameters:
      x - a float.
      y - a float.
      r1 - a float.
      r2 - a float.
      angle - a float.
      largeArcFlag - a boolean.
      sweepFlag - a boolean.
      Returns:
      a SVGPathSegArcRel object.
    • createSVGPathSegLinetoHorizontalAbs

      SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)

      createSVGPathSegLinetoHorizontalAbs.

      Parameters:
      x - a float.
      Returns:
      a SVGPathSegLinetoHorizontalAbs object.
    • createSVGPathSegLinetoHorizontalRel

      SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)

      createSVGPathSegLinetoHorizontalRel.

      Parameters:
      x - a float.
      Returns:
      a SVGPathSegLinetoHorizontalRel object.
    • createSVGPathSegLinetoVerticalAbs

      SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)

      createSVGPathSegLinetoVerticalAbs.

      Parameters:
      y - a float.
      Returns:
      a SVGPathSegLinetoVerticalAbs object.
    • createSVGPathSegLinetoVerticalRel

      SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)

      createSVGPathSegLinetoVerticalRel.

      Parameters:
      y - a float.
      Returns:
      a SVGPathSegLinetoVerticalRel object.
    • createSVGPathSegCurvetoCubicSmoothAbs

      SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)

      createSVGPathSegCurvetoCubicSmoothAbs.

      Parameters:
      x - a float.
      y - a float.
      x2 - a float.
      y2 - a float.
      Returns:
      a SVGPathSegCurvetoCubicSmoothAbs object.
    • createSVGPathSegCurvetoCubicSmoothRel

      SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)

      createSVGPathSegCurvetoCubicSmoothRel.

      Parameters:
      x - a float.
      y - a float.
      x2 - a float.
      y2 - a float.
      Returns:
      a SVGPathSegCurvetoCubicSmoothRel object.
    • createSVGPathSegCurvetoQuadraticSmoothAbs

      SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)

      createSVGPathSegCurvetoQuadraticSmoothAbs.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegCurvetoQuadraticSmoothAbs object.
    • createSVGPathSegCurvetoQuadraticSmoothRel

      SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)

      createSVGPathSegCurvetoQuadraticSmoothRel.

      Parameters:
      x - a float.
      y - a float.
      Returns:
      a SVGPathSegCurvetoQuadraticSmoothRel object.