LineSegDraw

case class LineSegDraw(curveSeg: LineSeg, width: Double, colour: Colour) extends CurveSegGraphic with AffinePreserve with CanvElem

A Graphic for a straight line. It is defined by its start and end points, the line width or thickness and the colour of the line.

Companion
object
trait Serializable
trait Product
trait Equals
trait CanvElem
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

override type ThisT = LineSegDraw

Value members

Concrete methods

def dashed(dashLength: Double, gapLength: Double): DashedLineDraw
def endPt: Pt2
override def ptsTrans(f: Pt2 => Pt2): LineSegDraw
Definition Classes
override def rendToCanvas(cp: CanvasPlatform): Unit
Definition Classes
def startPt: Pt2
def typeStr: String

Inherited methods

override def negX: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def negY: ThisT
Definition Classes
Inherited from
SimilarPreserve
final def pEnd: Pt2

The end point. Often called p2 on a line or p4 on a cubic bezier.

The end point. Often called p2 on a line or p4 on a cubic bezier.

Inherited from
CurveSegGraphic
final def pStart: Pt2

Start point often called p1

Start point often called p1

Inherited from
CurveSegGraphic
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def prolign(matrix: ProlignMatrix): ThisT
Definition Classes
Inherited from
ProlignPreserve
override def reflect(lineLike: LineLike): ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate(angle: AngleVec): ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate180: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate270: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate90: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def scale(operand: Double): ThisT
Definition Classes
Inherited from
ProlignPreserve
override def scaleXY(xOperand: Double, yOperand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override def shearX(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override def shearY(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override def slateXY(xDelta: Double, yDelta: Double): ThisT
Definition Classes
Inherited from
ProlignPreserve
def xEnd: Double

the x component of the end point.

the x component of the end point.

Inherited from
CurveSegGraphic
def xStart: Double

the x component of the start point often called x1

the x component of the start point often called x1

Inherited from
CurveSegGraphic
def yEnd: Double

the y component of the end point.

the y component of the end point.

Inherited from
CurveSegGraphic
def yStart: Double

the y component of the start point often called y1

the y component of the start point often called y1

Inherited from
CurveSegGraphic