scalation.scala2d

QArrow

case class QArrow(p1: R2 = R2 (0.0, 0.0), pc: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), len: Int = 10) extends Double with Product with Serializable

The QArrow class uses Java's Path2D class to create a quad curve with an arrowhead on the far end. The main curve is defined by points 'p1' and 'p2' along with a control point 'pc'. Points 'p3' and 'p4' are the corners of the triangular arrowhead.

p1

the starting point for the curve/arc

pc

the control point for the curve/arc

p2

the ending point for the curve/arc

len

the length of the arrowhead on the curve/arc

Linear Supertypes
Serializable, Product, Equals, Double, Serializable, Path2D, Cloneable, Shape, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QArrow
  2. Serializable
  3. Product
  4. Equals
  5. Double
  6. Serializable
  7. Path2D
  8. Cloneable
  9. Shape
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QArrow(p1: R2, p2: R2, bend: Double)

    Construct a QArrow (quad arc) where bend indicates the distance to the control point.

    Construct a QArrow (quad arc) where bend indicates the distance to the control point.

    p1

    the starting point for the curve/arc

    p2

    the ending point for the curve/arc

    bend

    the bend or curvature (1. => line length)

  2. new QArrow(p1: R2 = R2 (0.0, 0.0), pc: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), len: Int = 10)

    p1

    the starting point for the curve/arc

    pc

    the control point for the curve/arc

    p2

    the ending point for the curve/arc

    len

    the length of the arrowhead on the curve/arc

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 append(arg0: PathIterator, arg1: Boolean): Unit

    Definition Classes
    Double → Path2D
  5. final def append(arg0: Shape, arg1: Boolean): Unit

    Definition Classes
    Path2D
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def clone(): AnyRef

    Definition Classes
    Double → Path2D → AnyRef
  8. final def closePath(): Unit

    Definition Classes
    Path2D
  9. final def contains(arg0: Rectangle2D): Boolean

    Definition Classes
    Path2D → Shape
  10. final def contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Path2D → Shape
  11. final def contains(arg0: Point2D): Boolean

    Definition Classes
    Path2D → Shape
  12. final def contains(arg0: Double, arg1: Double): Boolean

    Definition Classes
    Path2D → Shape
  13. final def createTransformedShape(arg0: AffineTransform): Shape

    Definition Classes
    Path2D
  14. final def curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit

    Definition Classes
    Double → Path2D
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getBounds(): java.awt.Rectangle

    Definition Classes
    Path2D → Shape
  18. final def getBounds2D(): Rectangle2D

    Definition Classes
    Double → Shape
  19. def getCenterX(): Double

    Get the x-coordinate of the center of the main line/curve.

  20. def getCenterY(): Double

    Get the y-coordinate of the center of the main line/curve.

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. final def getCurrentPoint(): Point2D

    Definition Classes
    Path2D
  23. final def getPathIterator(arg0: AffineTransform): PathIterator

    Definition Classes
    Double → Shape
  24. final def getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator

    Definition Classes
    Path2D → Shape
  25. final def getWindingRule(): Int

    Definition Classes
    Path2D
  26. final def intersects(arg0: Rectangle2D): Boolean

    Definition Classes
    Path2D → Shape
  27. final def intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Path2D → Shape
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. val len: Int

    the length of the arrowhead on the curve/arc

  30. final def lineTo(arg0: Double, arg1: Double): Unit

    Definition Classes
    Double → Path2D
  31. final def moveTo(arg0: Double, arg1: Double): Unit

    Definition Classes
    Double → Path2D
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. var p1: R2

    the starting point for the curve/arc

  36. var p2: R2

    the ending point for the curve/arc

  37. var pc: R2

    the control point for the curve/arc

  38. final def quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit

    Definition Classes
    Double → Path2D
  39. final def reset(): Unit

    Definition Classes
    Path2D
  40. def setLine(_p1: R2, _pc: R2, _p2: R2): Unit

    Set (or reset) the location for the QArrow as a curve using an explicitly given control point.

    Set (or reset) the location for the QArrow as a curve using an explicitly given control point.

    _p1

    the starting point

    _pc

    the control point

    _p2

    the ending point

  41. def setLine(_p1: R2, _p2: R2, bend: Double): Unit

    Set (or reset) the location for the QArrow as a curve using bend to compute the control point.

    Set (or reset) the location for the QArrow as a curve using bend to compute the control point.

    _p1

    the starting point

    _p2

    the ending point

    bend

    the bend or curvature (1. => line-length)

  42. def setLine(_p1: R2, _p2: R2): Unit

    Set (or reset) the location for the QArrow as a line.

    Set (or reset) the location for the QArrow as a line.

    _p1

    the starting point

    _p2

    the ending point

  43. final def setWindingRule(arg0: Int): Unit

    Definition Classes
    Path2D
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. final def transform(arg0: AffineTransform): Unit

    Definition Classes
    Double → Path2D
  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Double

Inherited from Serializable

Inherited from Path2D

Inherited from Cloneable

Inherited from Shape

Inherited from AnyRef

Inherited from Any

Ungrouped