object PathElement extends Serializable
- Alphabetic
- By Inheritance
- PathElement
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class BezierCurveTo(cp1: Point, cp2: Point, to: Point) extends PathElement with Product with Serializable
- final case class LineTo(to: Point) extends PathElement with Product with Serializable
- final case class MoveTo(to: Point) extends PathElement with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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. - def circle(x: Double, y: Double, diameter: Double): List[PathElement]
Utility to construct a
List[PathElement]
that represents a circle. - def circle(center: Point, diameter: Double): List[PathElement]
Utility to construct a
List[PathElement]
that represents a circle. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def curveTo(cp1R: Double, cp1Angle: Angle, cp2R: Double, cp2Angle: Angle, toR: Double, toAngle: Angle): PathElement
- def curveTo(cp1X: Double, cp1Y: Double, cp2X: Double, cp2Y: Double, toX: Double, toY: Double): PathElement
- def curveTo(cp1: Point, cp2: Point, to: Point): PathElement
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lineTo(r: Double, angle: Angle): PathElement
- def lineTo(x: Double, y: Double): PathElement
- def lineTo(point: Point): PathElement
- def moveTo(r: Double, angle: Angle): PathElement
- def moveTo(x: Double, y: Double): PathElement
- def moveTo(point: Point): PathElement
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def regularPolygon(sides: Int, radius: Double, angle: Angle): List[PathElement]
Construct a regular polygon
- def rightArrow(width: Double, height: Double): List[PathElement]
- def roundedRectangle(width: Double, height: Double, radius: Double): List[PathElement]
Construct a rounded rectangle with the given width, height, and corner radius
- def star(points: Int, outerRadius: Double, innerRadius: Double, angle: Angle): List[PathElement]
Construct a star
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()