CanvasFx

case
class CanvasFx(canvFx: Canvas, theScene: Scene) extends CanvasTopLeft

A JavaFx implementation of CanvasPlatform. JavaFx 15 documentation
GraphicContext

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def clear(colour: Colour): Unit
Definition Classes
def fxAlign(align: TextAlign): TextAlignment
def fxBaseline(baseLine: BaseLine): VPos
override
def gcRestore(): Unit
Definition Classes
override
def gcSave(): Unit
Definition Classes
def getButton(e: MouseEvent): MouseButton
def getTime: Long
override
def height: Double
Definition Classes
def loadFile(fileName: String): EMon[String]
def saveFile(fileName: String, output: String): Unit
def setFill(fill: FillFacet): Unit
override
def timeOut(f: () => Unit, millis: Integer): Unit
Definition Classes
override
def tlCircleDraw(cd: CircleDraw): Unit
Definition Classes
override
def tlCircleFill(cf: CircleFill): Unit
Definition Classes
override
def tlCircleFillRadial(circle: Circle, fill: FillRadial): Unit
Definition Classes
override
def tlEllipseDraw(ed: EllipseDraw): Unit
Definition Classes
override
def tlEllipseFill(ef: EllipseFill): Unit
Definition Classes
override
def tlPolyFill(pf: PolygonFill): Unit
Definition Classes
override
Definition Classes
def toFxColor(colour: Colour): Color
override
def width: Double
Definition Classes

Inherited methods

def animSeq(anims: Seq[DispPhase]): Unit
Inherited from
CanvasPlatform
final override
def bezierDraw(bd: BezierDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
Inherited from
OrdinalEdgePoints
def bottom: Double
Inherited from
RectCenlign
@inline
final
Inherited from
Rectangularlign
@inline
final
Inherited from
Rectangularlign
Inherited from
OrdinalEdgePoints
final override
def cArcDraw(cad: CArcDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
override
def cen: Pt2
Definition Classes
Inherited from
RectCenlign
Inherited from
RectCenlign
def cenX: Double
Inherited from
RectCenlign
def cenY: Double
Inherited from
RectCenlign
final override
def circleDraw(cd: CircleDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def circleFill(cf: CircleFill): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def circleFillRadial(circle: Circle, fill: FillRadial): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def clip(pts: Polygon): Unit
Definition Classes
Inherited from
CanvasTopLeft
def crossHairs(lineWidth: Double, lineColour: Colour): LinesDraw
Inherited from
RectCenlign
final override
Definition Classes
Inherited from
CanvasTopLeft
final override
def eArcDraw(ead: EArcDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def ellipseDraw(ed: EllipseDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def ellipseFill(ef: EllipseFill): Unit
Definition Classes
Inherited from
CanvasTopLeft
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: Persist[A]): EMon[A]
Inherited from
CanvasPlatform
def fromFileFindElse[A](fileName: String, elseValue: => A)(implicit ev: Persist[A]): A
Inherited from
CanvasPlatform
def fromFileFindForeach[A](fileName: String, f: A => Unit)(implicit ev: Persist[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: Persist[A]): EMon[A]
Inherited from
CanvasPlatform
def fromFileFindSettingElse[A](settingStr: String, fileName: String, elseValue: => A)(implicit ev: Persist[A]): A
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
def left: Double
Inherited from
RectCenlign
def linePathDraw(pod: LinePathDraw): Unit
Inherited from
CanvasPlatform
final override
def lineSegDraw(ld: LineSegDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def lineSegsDraw(lsd: LinesDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def pLinePathDraw(pod: LinePathDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def pPolyDraw(pd: PolygonDraw): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def pPolyFill(pf: PolygonFill): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
Definition Classes
Inherited from
CanvasTopLeft
final override
Definition Classes
Inherited from
CanvasTopLeft
Inherited from
RectCenlign
final
def polygonDraw(pd: PolygonDraw): Unit
Inherited from
CanvasPlatform
final
def polygonFill(pf: PolygonFill): Unit
Inherited from
CanvasPlatform
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def rendElems(elems: Arr[GraphicElem]): Unit
Inherited from
CanvasPlatform
def right: Double
Inherited from
RectCenlign
final
Inherited from
CanvasPlatform
final
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
final override
def textGraphic(tg: TextGraphic): Unit
Definition Classes
Inherited from
CanvasTopLeft
final override
def textOutline(tl: TextOutline): Unit
Definition Classes
Inherited from
CanvasTopLeft
def tlCen: Pt2 => Pt2
Inherited from
CanvasTopLeft
Inherited from
OrdinalEdgePoints
def toBL(input: Pt2): Pt2
Inherited from
CanvasPlatform
def top: Double
Inherited from
RectCenlign
@inline
final
Inherited from
Rectangularlign
@inline
final
Inherited from
Rectangularlign

Top right offset from centre.

Top right offset from centre.

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

Concrete fields

val gc: GraphicsContext

Inherited fields

var keyDown: String => Unit
Inherited from
CanvasPlatform
var keyUp: String => Unit
Inherited from
CanvasPlatform
var mouseDown: (Pt2, MouseButton) => Unit

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
var mouseDragged: (Pt2, MouseButton) => Unit
Inherited from
CanvasPlatform
var mouseMoved: (Pt2, MouseButton) => Unit
Inherited from
CanvasPlatform
var mouseUp: (Pt2, MouseButton) => Unit

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
var onScroll: Boolean => Unit
Inherited from
CanvasPlatform
var resize: () => Unit
Inherited from
CanvasPlatform