CanvasTopLeft

This trait is for Canvas Implementations with a Top left origin and downward y axis. It should not be used directly by graphical applications.

class Object
trait Matchable
class Any

Value members

Concrete methods

final override def bezierDraw(bd: BezierDraw): Unit
Definition Classes
final override def cArcDraw(cad: CArcDraw): Unit
Definition Classes
final override def circleDraw(cd: CircleDraw): Unit
Definition Classes
final override def circleFill(cf: CircleFill): Unit
Definition Classes
final override def circleFillRadial(circle: Circle, fill: FillRadial): Unit
Definition Classes
final override def clip(pts: Polygon): Unit
Definition Classes
final override def dashedLineDraw(dld: DashedLineDraw): Unit
Definition Classes
final override def eArcDraw(ead: EArcDraw): Unit
Definition Classes
final override def ellipseDraw(ed: EllipseDraw): Unit
Definition Classes
final override def ellipseFill(ef: EllipseFill): Unit
Definition Classes
final override def lineSegDraw(ld: LineSegDraw): Unit
Definition Classes
final override def lineSegsDraw(lsd: LinesDraw): Unit
Definition Classes
final override def pLinePathDraw(pod: LinePathDraw): Unit
Definition Classes
final override def pPolyDraw(pd: PolygonDraw): Unit
Definition Classes
final override def pPolyFill(pf: PolygonFill): Unit
Definition Classes
final override def pShapeGenDraw(sgd: ShapeGenDrawOld): Unit
Definition Classes
final override def pShapeGenFill(sgf: ShapeGenFillOld): Unit
Definition Classes
final override def textGraphic(tg: TextGraphic): Unit
Definition Classes
final override def textOutline(tl: TextOutline): Unit
Definition Classes
def tlCen: Pt2 => Pt2

Inherited methods

def animSeq(anims: Seq[DispPhase]): Unit
Inherited from:
CanvasPlatform
Inherited from:
OrdinalEdgePoints
Inherited from:
RectCenlign
final def bottomLeft: Pt2
Inherited from:
Rectangularlign
final def bottomRight: Pt2
Inherited from:
Rectangularlign
Inherited from:
OrdinalEdgePoints
override def cen: Pt2
Definition Classes
Inherited from:
RectCenlign
Inherited from:
RectCenlign
Inherited from:
RectCenlign
Inherited from:
RectCenlign
def clear(colour: Colour): Unit
Inherited from:
CanvasPlatform
def crossHairs(lineWidth: Double, lineColour: Colour): LinesDraw
Inherited from:
RectCenlign
def frame(f: (Integer, Integer) => Unit, startTime: Integer, frameLength: Integer): Unit

A callback timer with an elapsed time from a given start point. Although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed. The function is of form: (elapsedTime(in milliseconds), Startime (in milliseconds) => Unit. The startTime is to be used to call the next frame at then end of the function, if another frame is needed.

A callback timer with an elapsed time from a given start point. Although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed. The function is of form: (elapsedTime(in milliseconds), Startime (in milliseconds) => Unit. The startTime is to be used to call the next frame at then end of the function, if another frame is needed.

Inherited from:
CanvasPlatform
def fromFileFind[A](fileName: String)(implicit ev: Unshow[A]): EMon[A]
Inherited from:
CanvasPlatform
def fromFileFindElse[A](fileName: String, elseValue: => A)(implicit ev: Unshow[A]): A
Inherited from:
CanvasPlatform
def fromFileFindForeach[A](fileName: String, f: A => Unit)(implicit ev: Unshow[A]): Unit

Attempts to find find and load file, attempts to parse the file, attempts to find object of type A. If all stages successful, calls procedure (Unit returning function) with that object of type A

Attempts to find find and load file, attempts to parse the file, attempts to find object of type A. If all stages successful, calls procedure (Unit returning function) with that object of type A

Inherited from:
CanvasPlatform
def fromFileFindSetting[A](settingStr: String, fileName: String)(implicit ev: Unshow[A]): EMon[A]
Inherited from:
CanvasPlatform
def fromFileFindSettingElse[A](settingStr: String, fileName: String, elseValue: => A)(implicit ev: Unshow[A]): A
Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform
def gcSave(): Unit
Inherited from:
CanvasPlatform

Returns the system (Unix) time in milliseconds.

Returns the system (Unix) time in milliseconds.

Inherited from:
CanvasPlatform
def gridLines(spacing: Double, colour: Colour, lineWidth: Double): LinesDraw

Not sure why spacing has got a minus sign

Not sure why spacing has got a minus sign

Inherited from:
RectCenlign
def gridLines2Colours(spacing: Double, cenColour: Colour, otherColour: Colour, lineWidth: Double): Arr[LinesDraw]

Badly named I think, not sure why spacing has got a minus sign

Badly named I think, not sure why spacing has got a minus sign

Inherited from:
RectCenlign
Inherited from:
Rectangularlign
Inherited from:
RectCenlign
Inherited from:
CanvasPlatform
def loadFile(fileName: String): EMon[String]
Inherited from:
CanvasPlatform
Inherited from:
RectCenlign
final def polygonDraw(pd: PolygonDraw): Unit
Inherited from:
CanvasPlatform
final def polygonFill(pf: PolygonFill): Unit
Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform
Inherited from:
RectCenlign
def saveFile(fileName: String, output: String): Unit
Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform
def startFrame(f: (Integer, Integer) => Unit, frameLength: Integer): Unit

The initial frame although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed.

The initial frame although are in a general purpose form, the most common usage is for animations where things move dependent on how much time has passed.

Inherited from:
CanvasPlatform
def startFramePermanent(f: Integer => Unit, millis: Integer): Unit
Inherited from:
CanvasPlatform
def timeOut(f: () => Unit, millis: Integer): Unit

A call back timer. Takes the delay in milliseconds

A call back timer. Takes the delay in milliseconds

Inherited from:
CanvasPlatform
Inherited from:
OrdinalEdgePoints
def toBL(input: Pt2): Pt2
Inherited from:
CanvasPlatform
def top: Double
Inherited from:
RectCenlign
final def topLeft: Pt2
Inherited from:
Rectangularlign
final def topRight: Pt2
Inherited from:
Rectangularlign

Top right offset from centre.

Top right offset from centre.

Inherited from:
OrdinalEdgePoints
Inherited from:
Rectangularlign
final def xBottomLeft: Double
Inherited from:
Rectangularlign
final def xBottomRight: Double
Inherited from:
Rectangularlign
final def xTopLeft: Double
Inherited from:
Rectangularlign
final def xTopRight: Double
Inherited from:
Rectangularlign
final def yBottomLeft: Double
Inherited from:
Rectangularlign
final def yBottomRight: Double
Inherited from:
Rectangularlign
final def yTopLeft: Double
Inherited from:
Rectangularlign
final def yTopRight: Double
Inherited from:
Rectangularlign

Inherited fields

Inherited from:
CanvasPlatform
var keyUp: String => Unit
Inherited from:
CanvasPlatform

The canvas implementation will call this function when the mouse button is depressed. Named after Javascript command.

The canvas implementation will call this function when the mouse button is depressed. Named after Javascript command.

Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform

The canvas implementation will call this function when a mouse button is released. Named after Javascript command.

The canvas implementation will call this function when a mouse button is released. Named after Javascript command.

Inherited from:
CanvasPlatform
Inherited from:
CanvasPlatform
var resize: () => Unit
Inherited from:
CanvasPlatform