scalation.scala2d

Line

case class Line(p1: R2, p2: R2) extends Double with CurvilinearShape with Product with Serializable

The Line class uses Java's Line2D class to create a line.

p1

the starting point for the line

p2

the ending point for the line

Linear Supertypes
Serializable, Product, Equals, CurvilinearShape, Error, Double, Serializable, Line2D, Cloneable, Shape, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Line
  2. Serializable
  3. Product
  4. Equals
  5. CurvilinearShape
  6. Error
  7. Double
  8. Serializable
  9. Line2D
  10. Cloneable
  11. Shape
  12. AnyRef
  13. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Line(p1: R2 = new scalation.scala2d.R2(0.0, 0.0), p2: R2 = new scalation.scala2d.R2(0.0, 0.0))

    p1

    the starting point for the line

    p2

    the ending point for the line

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  7. def canEqual(arg0: Any): Boolean

    Definition Classes
    Line → Equals
  8. def clone(): AnyRef

    Definition Classes
    Line2D → AnyRef
  9. def contains(arg0: Rectangle2D): Boolean

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

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

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

    Definition Classes
    Line2D → Shape
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    Line → Equals → AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  17. def getBounds(): Rectangle

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

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

    Get the x-coordinate of the center of the line.

    Get the x-coordinate of the center of the line.

    Definition Classes
    LineCurvilinearShape
  20. def getCenterY(): Double

    Get the y-coordinate of the center of the line.

    Get the y-coordinate of the center of the line.

    Definition Classes
    LineCurvilinearShape
  21. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    Double → Line2D
  23. def getP2(): Point2D

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

    Definition Classes
    Line2D → Shape
  25. def getPathIterator(arg0: AffineTransform): PathIterator

    Definition Classes
    Line2D → Shape
  26. def getX1(): Double

    Definition Classes
    Double → Line2D
  27. def getX2(): Double

    Definition Classes
    Double → Line2D
  28. def getY1(): Double

    Definition Classes
    Double → Line2D
  29. def getY2(): Double

    Definition Classes
    Double → Line2D
  30. def hashCode(): Int

    Definition Classes
    Line → AnyRef → Any
  31. def intersects(arg0: Rectangle2D): Boolean

    Definition Classes
    Line2D → Shape
  32. def intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Line2D → Shape
  33. def intersectsLine(arg0: Line2D): Boolean

    Definition Classes
    Line2D
  34. def intersectsLine(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Line2D
  35. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def next(width: Double, height: Double): R2

    Return the next point on the CurvilinearShape (one step beyond current point) and adjust from top-left to center coordinates for the object traversing the curve based on its width and height.

    Return the next point on the CurvilinearShape (one step beyond current point) and adjust from top-left to center coordinates for the object traversing the curve based on its width and height. Return null if past end point. This is an optional method.

    width

    the width of object traversing the curve

    height

    the height of object traversing the curve

    Definition Classes
    CurvilinearShape
  38. final def notify(): Unit

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

    Definition Classes
    AnyRef
  40. var p1: R2

    the starting point for the line

  41. var p2: R2

    the ending point for the line

  42. def productArity: Int

    Definition Classes
    Line → Product
  43. def productElement(arg0: Int): Any

    Definition Classes
    Line → Product
  44. def productIterator: Iterator[Any]

    Definition Classes
    Product
  45. def productPrefix: String

    Definition Classes
    Line → Product
  46. def ptLineDist(arg0: Point2D): Double

    Definition Classes
    Line2D
  47. def ptLineDist(arg0: Double, arg1: Double): Double

    Definition Classes
    Line2D
  48. def ptLineDistSq(arg0: Point2D): Double

    Definition Classes
    Line2D
  49. def ptLineDistSq(arg0: Double, arg1: Double): Double

    Definition Classes
    Line2D
  50. def ptSegDist(arg0: Point2D): Double

    Definition Classes
    Line2D
  51. def ptSegDist(arg0: Double, arg1: Double): Double

    Definition Classes
    Line2D
  52. def ptSegDistSq(arg0: Point2D): Double

    Definition Classes
    Line2D
  53. def ptSegDistSq(arg0: Double, arg1: Double): Double

    Definition Classes
    Line2D
  54. def relativeCCW(arg0: Point2D): Int

    Definition Classes
    Line2D
  55. def relativeCCW(arg0: Double, arg1: Double): Int

    Definition Classes
    Line2D
  56. def setLine(_p1: R2, _p2: R2, bend: Double): Unit

    Set (or reset) the frame/location for the Line as a line.

    Set (or reset) the frame/location for the Line as a line. The bend parameter is ignored for this class, since arrows are straight.

    _p1

    the starting point

    _p2

    the ending point

    bend

    the bend or curvature (0. => straight line)

    Definition Classes
    LineCurvilinearShape
  57. def setLine(_p1: R2, _p2: R2): Unit

    Set (or reset) the frame/location for the Line as a line.

    Set (or reset) the frame/location for the Line as a line.

    _p1

    the starting point

    _p2

    the ending point

    Definition Classes
    LineCurvilinearShape
  58. def setLine(p1: R2, pc: R2, p2: R2): Unit

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

    Set (or reset) the location for a line/curve using an explicitly given control point. This is an optional method.

    Definition Classes
    CurvilinearShape
  59. def setLine(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit

    Definition Classes
    Double → Line2D
  60. def setLine(arg0: Line2D): Unit

    Definition Classes
    Line2D
  61. def setLine(arg0: Point2D, arg1: Point2D): Unit

    Definition Classes
    Line2D
  62. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  63. def toString(): String

    Definition Classes
    Line → AnyRef → Any
  64. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CurvilinearShape

Inherited from Error

Inherited from Double

Inherited from Serializable

Inherited from Line2D

Inherited from Cloneable

Inherited from Shape

Inherited from AnyRef

Inherited from Any