MapGui

abstract
class MapGui(title: String) extends CanvasPanelled

A MapGui uses a CanvMulti. It has a main map panel and a top control panel. In addition translates between 2d game coordinates and 2d coordinates on the canvas. Allowing the canvas to display a moving, scalable 2d view though the Game map. The x coordinate increases from left to right, the y coordinate increases from bottom to top.

class Object
trait Matchable
class Any

Value members

Abstract methods

def eTop(): Unit

Concrete methods

def mapPanelDiameter: Double
def reTop(commands: Arr[GraphicBounded]): Unit

repaints the top command bar

repaints the top command bar

def setStatus(str: String): Unit
def textBox(str: String, cmd: AnyRef): PolygonCompound
def textBoxFull(str: String, cmd: AnyRef): PolygonCompound

Inherited methods

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

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 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

Concrete fields

val barWidth: Int
var statusText: String

Inherited fields

Inherited from
CanvasUser
Inherited from
CanvasPanelled