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. AlignedElem
  5. AnyRef
  6. 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
  3. abstract def cArcDrawOld(ad: CArcDrawOld): Unit
  4. abstract def circleDraw(circle: Circle, lineWidth: Double, colour: Colour): Unit
  5. abstract def circleDrawOld(cd: CircleDraw): Unit
  6. abstract def circleFill(circle: Circle, colour: Colour): Unit
  7. abstract def circleFillRadial(circle: Circle, fill: FillRadial): Unit
  8. abstract def clear(colour: Colour = White): Unit
  9. abstract def clip(pts: Polygon): Unit
  10. abstract def dashedLineDraw(dld: DashedLineDraw): Unit
  11. abstract def ellipseDraw(ellipse: Ellipse, lineWidth: Double, colour: Colour): Unit
  12. abstract def ellipseFill(ellipse: Ellipse, colour: Colour): Unit
  13. abstract def gcRestore(): Unit
  14. abstract def gcSave(): Unit
  15. abstract def getTime: Long

    Returns the system (Unix) time in milliseconds.

  16. abstract def height: Double
    Definition Classes
    Rectangularlign
  17. abstract def lineDraw(ld: LineDraw): Unit
  18. abstract def linesDraw(lsd: LinesDraw): Unit
  19. abstract def loadFile(fileName: String): EMon[String]
  20. abstract def pLinePathDraw(pod: LinePathDraw): Unit
  21. abstract def pPolyDraw(poly: Polygon, lineWidth: Double, colour: Colour): Unit
  22. abstract def pPolyFill(poly: Polygon, colour: Colour): Unit
  23. abstract def pShapeDraw(shape: PolyCurve, lineWidth: Double, colour: Colour): Unit
  24. abstract def pShapeFill(shape: PolyCurve, colour: Colour): Unit
  25. abstract def saveFile(fileName: String, output: String): Unit
  26. abstract def textGraphic(tg: TextGraphic): Unit
  27. abstract def textOutline(to: TextOutline): Unit
  28. abstract def timeOut(f: () => Unit, millis: Integer): Unit

    A call back timer.

    A call back timer. Takes the delay in milliseconds

  29. 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. final def bezierDraw(pStart: Vec2, pEnd: Vec2, pControl1: Vec2, pControl2: Vec2, lineWidth: Double = 1, colour: Colour = Black): Unit
  7. def bottom: Double
    Definition Classes
    RectCenlign
  8. final def bottomLeft: Vec2
    Definition Classes
    RectangularlignAlignedElem
    Annotations
    @inline()
  9. def bottomLeftDelta: Vec2
    Definition Classes
    AlignedElem
  10. final def bottomRight: Vec2
    Definition Classes
    RectangularlignAlignedElem
    Annotations
    @inline()
  11. def bottomRightDelta: Vec2
    Definition Classes
    AlignedElem
  12. final def cArcDrawOld(pStart: Vec2, pCen: Vec2, pEnd: Vec2, lineWidth: Double = 1, colour: Colour = Black): Unit
  13. def cen: Vec2
    Definition Classes
    RectCenlignAlignedElem
  14. def cenLeft: Vec2
    Definition Classes
    RectCenlign
  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. final def lineDraw(pStart: Vec2, pEnd: Vec2, lineWidth: Double = 1.0, colour: Colour = Black): Unit
  34. def linePathDraw(pod: LinePathDraw): Unit
  35. final def linesDraw(lineWidth: Double, linesColour: Colour, lines: LineSeg*): Unit
  36. val mouseDown: (Vec2, 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

  37. val mouseDragged: (Vec2, MouseButton) => Unit
  38. val mouseMoved: (Vec2, MouseButton) => Unit
  39. val mouseUp: (Vec2, 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

  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. val onScroll: (Boolean) => Unit
  44. def panelCen: Vec2
    Definition Classes
    RectCenlign
  45. final def polygonDraw(poly: Polygon, lineWidth: Double, colour: Colour): Unit
  46. final def polygonFill(poly: Polygon, colour: Colour): Unit
  47. def rendElems(elems: Arr[GraphicElem]): Unit
  48. val resize: () => Unit
  49. def right: Double
    Definition Classes
    RectCenlign
  50. final def shapeDraw(shape: PolyCurve, lineWidth: Double, colour: Colour): Unit
  51. final def shapeFill(shape: PolyCurve, colour: Colour): Unit
  52. 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.

  53. def startFramePermanent(f: (Integer) => Unit, millis: Integer = 15): Unit
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. final def textGraphic(str: String, fontSize: Int, posn: Vec2, colour: Colour = Black, align: TextAlign = CenAlign): Unit
  56. final def textOutline(str: String, fontSize: Int, posn: Vec2, colour: Colour = Black, lineWidth: Double = 1, align: TextAlign = CenAlign): Unit
  57. def toBL(input: Vec2): Vec2
  58. def toString(): String
    Definition Classes
    AnyRef → Any
  59. def top: Double
    Definition Classes
    RectCenlign
  60. final def topLeft: Vec2
    Definition Classes
    RectangularlignAlignedElem
    Annotations
    @inline()
  61. def topLeftDelta: Vec2
    Definition Classes
    AlignedElem
  62. final def topRight: Vec2
    Definition Classes
    RectangularlignAlignedElem
    Annotations
    @inline()
  63. def topRightDelta: Vec2
    Definition Classes
    AlignedElem
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  66. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def xBottomLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  68. final def xBottomRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  69. def xCen: Double
    Definition Classes
    RectCenlignRectangularlignAlignedElem
  70. final def xTopLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  71. final def xTopRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  72. final def yBottomLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  73. final def yBottomRight: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  74. def yCen: Double
    Definition Classes
    RectCenlignRectangularlignAlignedElem
  75. final def yTopLeft: Double
    Definition Classes
    Rectangularlign
    Annotations
    @inline()
  76. 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 AlignedElem

Inherited from AnyRef

Inherited from Any

Ungrouped