case class
Arrow(p1: R2, p2: R2, len: Int) extends Double with CurvilinearShape with Product with Serializable
Instance Constructors
-
new
Arrow(p1: R2 = new scalation.scala2d.R2(0.0, 0.0), p2: R2 = new scalation.scala2d.R2(0.0, 0.0), len: Int = 10)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
append(arg0: PathIterator, arg1: Boolean): Unit
-
final
def
append(arg0: Shape, arg1: Boolean): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
canEqual(arg0: Any): Boolean
-
final
def
clone(): AnyRef
-
final
def
closePath(): Unit
-
final
def
contains(arg0: Rectangle2D): Boolean
-
final
def
contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
-
final
def
contains(arg0: Point2D): Boolean
-
final
def
contains(arg0: Double, arg1: Double): Boolean
-
final
def
createTransformedShape(arg0: AffineTransform): Shape
-
final
def
curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
flaw(method: String, message: String): Unit
-
final
def
getBounds(): Rectangle
-
final
def
getBounds2D(): Rectangle2D
-
def
getCenterX(): Double
-
def
getCenterY(): Double
-
final
def
getClass(): java.lang.Class[_]
-
final
def
getCurrentPoint(): Point2D
-
final
def
getPathIterator(arg0: AffineTransform): PathIterator
-
final
def
getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator
-
final
def
getWindingRule(): Int
-
def
hashCode(): Int
-
final
def
intersects(arg0: Rectangle2D): Boolean
-
final
def
intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
var
len: Int
-
final
def
lineTo(arg0: Double, arg1: Double): Unit
-
final
def
moveTo(arg0: Double, arg1: Double): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
def
next(width: Double, height: Double): R2
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
var
p1: R2
-
var
p2: R2
-
def
productArity: Int
-
def
productElement(arg0: Int): Any
-
def
productIterator: Iterator[Any]
-
def
productPrefix: String
-
final
def
quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit
-
final
def
reset(): Unit
-
def
setLine(_p1: R2, _p2: R2, bend: Double): Unit
-
def
setLine(_p1: R2, _p2: R2): Unit
-
def
setLine(p1: R2, pc: R2, p2: R2): Unit
-
final
def
setWindingRule(arg0: Int): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
transform(arg0: AffineTransform): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Deprecated Value Members
-
def
productElements: Iterator[Any]
Inherited from Product
Value Members
-
def
productIterator: Iterator[Any]
-
def
productElements: Iterator[Any]
Value Members
-
def
next(width: Double, height: Double): R2
-
def
setLine(p1: R2, pc: R2, p2: R2): Unit
Inherited from Error
Value Members
-
def
flaw(method: String, message: String): Unit
Inherited from Double
Value Members
-
final
def
append(arg0: PathIterator, arg1: Boolean): Unit
-
final
def
clone(): AnyRef
-
final
def
curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit
-
final
def
getBounds2D(): Rectangle2D
-
final
def
getPathIterator(arg0: AffineTransform): PathIterator
-
final
def
lineTo(arg0: Double, arg1: Double): Unit
-
final
def
moveTo(arg0: Double, arg1: Double): Unit
-
final
def
quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit
-
final
def
transform(arg0: AffineTransform): Unit
Inherited from Path2D
Value Members
-
final
def
append(arg0: Shape, arg1: Boolean): Unit
-
final
def
closePath(): Unit
-
final
def
contains(arg0: Rectangle2D): Boolean
-
final
def
contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
-
final
def
contains(arg0: Point2D): Boolean
-
final
def
contains(arg0: Double, arg1: Double): Boolean
-
final
def
createTransformedShape(arg0: AffineTransform): Shape
-
final
def
getBounds(): Rectangle
-
final
def
getCurrentPoint(): Point2D
-
final
def
getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator
-
final
def
getWindingRule(): Int
-
final
def
intersects(arg0: Rectangle2D): Boolean
-
final
def
intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
-
final
def
reset(): Unit
-
final
def
setWindingRule(arg0: Int): Unit
Inherited from AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): java.lang.Class[_]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Any
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
final
def
isInstanceOf[T0]: Boolean
The Arrow class uses Java's Path2D class to create a line with an arrowhead on the far end. The main line is defined by points p1 and p2. Points p3 and p4 are the corners of the triangular arrowhead.
the starting point for the line/arrow
the ending point for the line/arrow
the length of the arrowhead on the line/arrow