CanvasNoPanels

abstract
class CanvasNoPanels(title: String) extends CanvasUser with PanelLike

A canvas that is not divided up into panels. A panel is a portion of the canvas that has its own origin and is clipped.

trait PanelLike
class Object
trait Matchable
class Any
class CArcExs
class LsA1
class LsA10
class LsA11
class LsA12
class LsA13
class LsA1a
class LsA1b
class LsA2
class LsA3
class LsA3a
class LsA4
class LsA5
class LsA6
class LsA7
class LsA8
class LsA9
class LsB1
class LsB2
class LsB3
class LsC1
class LsC2
class LsC3
class LsC4
class LsC5
class LsC6
class LsC7
class LsC8
class LsD1
class LsD2
class LsD3
class LsD4
class LsD5
class BattleGui
class FlagsGui
class ColourGen

Value members

Concrete methods

override
def height: Double
Definition Classes
def refresh(): Unit
def repaint(els: Arr[GraphicElem]): Unit

Repaints the canvas, takes a Refs collection as parameter.

Repaints the canvas, takes a Refs collection as parameter.

def repaints(els: GraphicElem*): Unit

Repaints the canvas takes repeat parameters of GraphicElem.

Repaints the canvas takes repeat parameters of GraphicElem.

def timedRepaint(f: Integer => GraphicElems): Unit

This function is to create a display that changes over time. So you pass in a function from the time elapsed in milliseconds to the Arr of GraphicElems that you want to display at that time point.

This function is to create a display that changes over time. So you pass in a function from the time elapsed in milliseconds to the Arr of GraphicElems that you want to display at that time point.

def timedRepaint1(f: Integer => GraphicElem): Unit
override
def width: Double
Definition Classes

Inherited methods

Inherited from
OrdinalEdgePoints
def bottom: Double
Inherited from
RectCenlign
@inline
final
Inherited from
Rectangularlign
@inline
final
Inherited from
Rectangularlign
Inherited from
OrdinalEdgePoints
override
def cen: Pt2
Definition Classes
Inherited from
RectCenlign
Inherited from
RectCenlign
def cenX: Double
Inherited from
RectCenlign
def cenY: Double
Inherited from
RectCenlign
def crossHairs(lineWidth: Double, lineColour: Colour): LinesDraw
Inherited from
RectCenlign
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

This reverses the order of the GraphicActive List. Method paints objects to screen as side effect.

This reverses the order of the GraphicActive List. Method paints objects to screen as side effect.

Inherited from
CanvasUser
Inherited from
RectCenlign
def right: Double
Inherited from
RectCenlign
def setMouseSimple(action: Pt2 => Unit): Unit

Just responds to the position of the mose click on the Panel, ignores any potential active objects on the screen.

Just responds to the position of the mose click on the Panel, ignores any potential active objects on the screen.

Inherited from
PanelLike
def setMouseSimplest(action: => Unit): Unit

Just responds to when the Panel is clicked, ignores the position of the mose click or any potential active objects on the screen.

Just responds to when the Panel is clicked, ignores the position of the mose click or any potential active objects on the screen.

Inherited from
PanelLike
Inherited from
OrdinalEdgePoints
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

Inherited fields

These are currently stored in reverse. I think this would be better in an Array

These are currently stored in reverse. I think this would be better in an Array

Inherited from
PanelLike
Inherited from
PanelLike
Inherited from
CanvasUser
Inherited from
PanelLike
Inherited from
PanelLike
Inherited from
PanelLike
var mouseDown: (Pt2, MouseButton, AnyRefs) => Unit

This method name is inconsistent with mousedown on the canvas class

This method name is inconsistent with mousedown on the canvas class

Inherited from
PanelLike
var mouseUp: (MouseButton, List[Any], Pt2) => Unit

This method name is inconsistent with mouseup on the canvas class

This method name is inconsistent with mouseup on the canvas class

Inherited from
PanelLike