Packages

object PathElement extends Serializable

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathElement
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class BezierCurveTo(cp1: Point, cp2: Point, to: Point) extends PathElement with Product with Serializable
  2. final case class LineTo(to: Point) extends PathElement with Product with Serializable
  3. final case class MoveTo(to: Point) extends PathElement with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def catmulRom(points: Seq[Point], tension: Double = 0.5): List[PathElement]

    Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)

    Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)

    The tension can be changed to control how tightly the curve turns. It defaults to 0.5.

    The Catmul Rom algorithm requires a point before and after each pair of points that define the curve. To meet this condition for the first and last points in points, they are repeated.

    If points has less than two elements an empty List is returned.

  6. def circle(x: Double, y: Double, diameter: Double): List[PathElement]

    Utility to construct a List[PathElement] that represents a circle.

  7. def circle(center: Point, diameter: Double): List[PathElement]

    Utility to construct a List[PathElement] that represents a circle.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def curveTo(cp1R: Double, cp1Angle: Angle, cp2R: Double, cp2Angle: Angle, toR: Double, toAngle: Angle): PathElement
  10. def curveTo(cp1X: Double, cp1Y: Double, cp2X: Double, cp2Y: Double, toX: Double, toY: Double): PathElement
  11. def curveTo(cp1: Point, cp2: Point, to: Point): PathElement
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def interpolatingSpline(points: Seq[Point]): List[PathElement]

    Construct list of bezier curves that are smoothly connected and intersect all the given points.

    Construct list of bezier curves that are smoothly connected and intersect all the given points. Defaults to catmulRom with the default tension.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def lineTo(r: Double, angle: Angle): PathElement
  20. def lineTo(x: Double, y: Double): PathElement
  21. def lineTo(point: Point): PathElement
  22. def moveTo(r: Double, angle: Angle): PathElement
  23. def moveTo(x: Double, y: Double): PathElement
  24. def moveTo(point: Point): PathElement
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def regularPolygon(sides: Int, radius: Double, angle: Angle): List[PathElement]

    Construct a regular polygon

  29. def rightArrow(width: Double, height: Double): List[PathElement]
  30. def roundedRectangle(width: Double, height: Double, radius: Double): List[PathElement]

    Construct a rounded rectangle with the given width, height, and corner radius

  31. def star(points: Int, outerRadius: Double, innerRadius: Double, angle: Angle): List[PathElement]

    Construct a star

  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped