Packages

t

ostrat.pCanv

CanvasPlatform

trait CanvasPlatform extends RectCenlign

An abstract Canvas interface implemented and to be implemented on various platforms. A concrete implementation will utilise canvas like an HTML canvas or a Scalafx canvas. This concrete implementation class must (can?) be mixed in with a a particular use trait like CanvSimple or CanvMulti. The default methods take the origin as the centre of the canvas. Note the Canvas Platform merely passes bare pointer event data to delegate functions. It does not process them in relation to objects painted on the Canvas.

It is really not a good idea to use this trait, use a sub class of this trait directly in your applications. You do not want to be thinking in terms of the imperative methods of this application. Use one of the provided classes like CanvasNoPanels or Canvas Panelled or create your own if the provided classes don't fulfill your needs.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CanvasPlatform
  2. RectCenlign
  3. Rectangularlign
  4. OrdinalEdgePoints
  5. WithCentre
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def bezierDraw(bd: BezierDraw): Unit
  2. abstract def cArcDraw(cad: CArcDraw): Unit

    Draws a circular arc on the canvas.

  3. abstract def circleDraw(cd: CircleDraw): Unit

    Side effecting procedure that draws a circle on the screen.

    Side effecting procedure that draws a circle on the screen. Implemented by the target platform.

  4. abstract def circleFill(cf: CircleFill): Unit

    Side effecting procedure that fills a circle.

    Side effecting procedure that fills a circle. Implemented by the target platform.

  5. abstract def circleFillRadial(circle: Circle, fill: FillRadial): Unit
  6. abstract def clear(colour: Colour = White): Unit
  7. abstract def clip(pts: Polygon): Unit
  8. abstract def dashedLineDraw(dld: DashedLineDraw): Unit

    To be removed from CanvasPlatform.

  9. abstract def eArcDraw(ead: EArcDraw): Unit

    Draws an elliptical arc on the canvas.

  10. abstract def ellipseDraw(ed: EllipseDraw): Unit

    Side effecting procedure that draws an ellipse on the screen.

    Side effecting procedure that draws an ellipse on the screen. Implemented by the target platform.

  11. abstract def ellipseFill(ef: EllipseFill): Unit

    Side effecting procedure that fills an ellipse on the screen.

    Side effecting procedure that fills an ellipse on the screen. Implemented by the target platform.

  12. abstract def gcRestore(): Unit
  13. abstract def gcSave(): Unit
  14. abstract def getTime: Long

    Returns the system (Unix) time in milliseconds.

  15. abstract def height: Double
    Definition Classes
    Rectangularlign
  16. abstract def lineSegDraw(ld: LineSegDraw): Unit
  17. abstract def lineSegsDraw(lsd: LinesDraw): Unit
  18. abstract def loadFile(fileName: String): EMon[String]
  19. abstract def pLinePathDraw(pod: LinePathDraw): Unit
    Attributes
    protected
  20. abstract def pPolyDraw(pd: PolygonDraw): Unit
    Attributes
    protected
  21. abstract def pPolyFill(pf: PolygonFill): Unit
    Attributes
    protected
  22. abstract def pShapeGenDraw(sgd: ShapeGenDrawOld): Unit
    Attributes
    protected
  23. abstract def pShapeGenFill(sgf: ShapeGenFillOld): Unit
    Attributes
    protected
  24. abstract def saveFile(fileName: String, output: String): Unit
  25. abstract def textGraphic(tg: TextGraphic): Unit
  26. abstract def textOutline(to: TextOutline): Unit
  27. abstract def timeOut(f: () => Unit, millis: Integer): Unit

    A call back timer.

    A call back timer. Takes the delay in milliseconds

  28. abstract def width: Double
    Definition Classes
    Rectangularlign

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def animSeq(anims: Seq[DispPhase]): Unit
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def blOffset: Vec2
    Definition Classes
    OrdinalEdgePoints
  7. def bottom: Double
    Definition Classes
    RectCenlign
  8. final def bottomLeft: Pt2
    Definition Classes
    RectangularlignOrdinalEdgePoints
    Annotations
    @inline()
  9. final def bottomRight: Pt2
    Definition Classes
    RectangularlignOrdinalEdgePoints
    Annotations
    @inline()
  10. def brOffset: Vec2
    Definition Classes
    OrdinalEdgePoints
  11. def cen: Pt2

    The centre of this geometric / graphical element.

    The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

    Definition Classes
    RectCenlignWithCentre
  12. def cenLeft: Pt2
    Definition Classes
    RectCenlign
  13. def cenX: Double

    The X component of the centre.

    The X component of the centre.

    Definition Classes
    RectCenlignWithCentre
  14. def cenY: Double

    The Y component of the centre.

    The Y component of the centre.

    Definition Classes
    RectCenlignWithCentre
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  16. def crossHairs(lineWidth: Double = 1, lineColour: Colour = Black): LinesDraw
    Definition Classes
    RectCenlign
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def frame(f: (Integer, Integer) => Unit, startTime: Integer, frameLength: Integer = 15): Unit

    A callback timer with an elapsed time from a given start point.

    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.

  20. def fromFileFind[A](fileName: String)(implicit ev: Persist[A]): EMon[A]
  21. def fromFileFindElse[A](fileName: String, elseValue: => A)(implicit ev: Persist[A]): A
  22. 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.

    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

  23. def fromFileFindSetting[A](settingStr: String, fileName: String)(implicit ev: Persist[A]): EMon[A]
  24. def fromFileFindSettingElse[A](settingStr: String, fileName: String, elseValue: => A)(implicit ev: Persist[A]): A
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def gridLines(spacing: Double = 100, colour: Colour = Black, lineWidth: Double = 1.0): LinesDraw

    Not sure why spacing has got a minus sign

    Not sure why spacing has got a minus sign

    Definition Classes
    RectCenlign
  27. def gridLines2Colours(spacing: Double = 100, cenColour: Colour = Colour.DarkRed, otherColour: Colour = Black, lineWidth: Double = 1.0): 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

    Definition Classes
    RectCenlign
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. val keyDown: (String) => Unit
  31. val keyUp: (String) => Unit
  32. def left: Double
    Definition Classes
    RectCenlign
  33. def linePathDraw(pod: LinePathDraw): Unit
  34. val mouseDown: (Pt2, MouseButton) => Unit

    The canvas implementation will call this function when the mouse button is depressed.

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

  35. val mouseDragged: (Pt2, MouseButton) => Unit
  36. val mouseMoved: (Pt2, MouseButton) => Unit
  37. val mouseUp: (Pt2, MouseButton) => Unit

    The canvas implementation will call this function when a mouse button is released.

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

  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. val onScroll: (Boolean) => Unit
  42. def panelCen: Pt2
    Definition Classes
    RectCenlign
  43. final def polygonDraw(pd: PolygonDraw): Unit
  44. final def polygonFill(pf: PolygonFill): Unit
  45. def rendElems(elems: Arr[GraphicElem]): Unit
  46. val resize: () => Unit
  47. def right: Double
    Definition Classes
    RectCenlign
  48. final def shapeGenDraw(sgd: ShapeGenDrawOld): Unit
  49. final def shapeGenFill(sgf: ShapeGenFillOld): Unit
  50. def startFrame(f: (Integer, Integer) => Unit, frameLength: Integer = 15): 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.

  51. def startFramePermanent(f: (Integer) => Unit, millis: Integer = 15): Unit
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def tlOffset: Vec2
    Definition Classes
    OrdinalEdgePoints
  54. def toBL(input: Pt2): Pt2
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. def top: Double
    Definition Classes
    RectCenlign
  57. final def topLeft: Pt2
    Definition Classes
    RectangularlignOrdinalEdgePoints
    Annotations
    @inline()
  58. final def topRight: Pt2
    Definition Classes
    RectangularlignOrdinalEdgePoints
    Annotations
    @inline()
  59. def trOffset: Vec2

    Top right offset from centre.

    Top right offset from centre.

    Definition Classes
    OrdinalEdgePoints
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def xBottomLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  64. final def xBottomRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  65. final def xTopLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  66. final def xTopRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  67. final def yBottomLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  68. final def yBottomRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  69. final def yTopLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  70. final def yTopRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from RectCenlign

Inherited from Rectangularlign

Inherited from OrdinalEdgePoints

Inherited from WithCentre

Inherited from AnyRef

Inherited from Any

Ungrouped