MapGui

ostrat.pgui.MapGui
abstract class MapGui(val 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.

Attributes

Graph
Supertypes
trait CanvasUser
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def eTop(): Unit

Concrete methods

def reTop(commands: RArr[GraphicBounded]): Unit

repaints the top command bar

repaints the top command bar

Attributes

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

Attributes

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.

Attributes

Inherited from:
CanvasUser
def refresh(): Unit

Attributes

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.

Attributes

Inherited from:
CanvasPanelled

Concrete fields

val barWidth: Int
var statusText: String
val title: String
val topPan: Panel

Inherited fields

Attributes

Inherited from:
CanvasUser
var panels: RArr[Panel]

Attributes

Inherited from:
CanvasPanelled