Planets

case
class Planets(canv: CanvasPlatform) extends MapGui with Dist2Gui

Simple Solar system model application.

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

Type members

Classlikes

class Planet(val dist: Metres, val colour: Colour, val name: String)
Companion
object
object Planet
Companion
class
object Sun extends Planet

Inherited classlikes

implicit
class ImpVec2InCanvasMap(thisVec2: Pt2)
Inherited from
Dist2Gui

Value members

Concrete methods

override
def eTop(): Unit
Definition Classes
def out(elapsed: Integer, startTime: Integer): Unit
def pausedStr: String

Inherited methods

def addPanel(clipPoly: Polygon, cover: Boolean): Panel
Inherited from
CanvasPanelled

Translates an array of map points to an array of Canvas Display positions

Translates an array of map points to an array of Canvas Display positions

Inherited from
Dist2Gui
def invCanv(canvPoint: Pt2): Pt2

Translates a point from Canvas Display position back to Map position

Translates a point from Canvas Display position back to Map position

Inherited from
Dist2Gui
def mapPanelDiameter: Double
Inherited from
MapGui

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
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def reFocus(newFocus: PtMetre2): Unit
Inherited from
Dist2Gui
def reTop(commands: Arr[GraphicBounded]): Unit

repaints the top command bar

repaints the top command bar

Inherited from
MapGui
def refresh(): Unit
Inherited from
CanvasPanelled
def refreshPanel(panel: Panel): Unit

This method creates a new frame for the panel. It clips the painting area. Paints the Panel with the back colour, translates the GraphicElems from their positions relative to the Panel's centre to their absolute positions on the canvas. It stores the active object shapes with their absolute positions on the panels active object list. Finally it unclips the painting area.

This method creates a new frame for the panel. It clips the painting area. Paints the Panel with the back colour, translates the GraphicElems from their positions relative to the Panel's centre to their absolute positions on the canvas. It stores the active object shapes with their absolute positions on the panels active object list. Finally it unclips the painting area.

Inherited from
CanvasPanelled
final
def repaintMap(): Unit
Inherited from
Dist2Gui
def setStatus(str: String): Unit
Inherited from
MapGui
Inherited from
MapGui
def textBox(str: String, cmd: AnyRef): PolygonCompound
Inherited from
MapGui
def textBoxFull(str: String, cmd: AnyRef): PolygonCompound
Inherited from
MapGui
def toCanv(mapPoint: PtMetre2): Pt2

Translates a point from map position to Canvas Display position

Translates a point from map position to Canvas Display position

Inherited from
Dist2Gui
def zoomInCmd: MouseButton => Unit
Inherited from
Dist2Gui
def zoomOutCmd: MouseButton => Unit
Inherited from
Dist2Gui

Concrete fields

var paused: Boolean
val pls: Arr[Planet]
override
override
var years: Double

Inherited fields

Inherited from
Dist2Gui
Inherited from
Dist2Gui
val barWidth: Int
Inherited from
MapGui
Inherited from
Dist2Gui
Inherited from
MapGui
val margin: Int
Inherited from
Dist2Gui
Inherited from
CanvasPanelled
Inherited from
Dist2Gui
var statusText: String
Inherited from
MapGui
val title: String
Inherited from
CanvasUser
Inherited from
MapGui
Inherited from
Dist2Gui

Implicits

Inherited implicits

final implicit
Inherited from
Dist2Gui