mWaba
Class mApp

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--waba.ui.MainWindow
                    |
                    +--mWaba.mApp

public class mApp
extends waba.ui.MainWindow


Field Summary
static mFrame appFrame
           
static mApp mainApp
           
protected  boolean monoMode
           
protected  mGraphics myGraphics
           
static java.lang.String platform
           
static int tickTime
           
 
Fields inherited from class waba.ui.MainWindow
defaultFont
 
Fields inherited from class waba.ui.Container
children, numChildren, tail
 
Fields inherited from class waba.ui.Control
height, next, parent, width, x, y
 
Constructor Summary
mApp()
           
 
Method Summary
 void _onTimerTick()
           
 void _setTimerInterval(int time)
           
static void addFont(waba.fx.Font which, java.lang.String name)
           
static void cancelTimer(int timerId)
           
protected  boolean canExit(int code)
           
 void changeMonoMode()
           
static waba.fx.Font findFont(java.lang.String name)
          Find a font
static waba.fx.Font findFont(java.lang.String name, boolean doDefault)
          Find a font
 waba.fx.Graphics getGraphics(boolean newOne)
           
 void onEvent(waba.ui.Event ev)
           
 void onPaint(waba.fx.Graphics g)
           
 void paintChildren(waba.fx.Graphics gr, int x, int y, int width, int height)
           
 void repaintNow(waba.fx.Rect area)
           
static void requestCallBack(waba.ui.Control from, java.lang.Object data)
           
static int requestTick(TimerProc who, int milli)
          This results in a single call to the ticked() method of the TimerProc, unless cancelTimer() is called first.
static int requestTimer(TimerProc who, int milli)
          This results in regular calls to the ticked() method of the TimerProc until cancelTimer() is called.
 void setRect(int x, int y, int w, int h)
           
static void setupFonts()
           
 void show(mFrame f, boolean fullSize)
           
 void tryExit(int code)
           
 
Methods inherited from class waba.ui.MainWindow
_postEvent, addTimer, damageRect, doPaint, exit, getFontMetrics, onExit, onStart, removeTimer
 
Methods inherited from class waba.ui.Container
add, findChild, remove
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getMainWindow, getNext, getParent, getRect, postEvent, repaint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainApp

public static mApp mainApp

tickTime

public static int tickTime

appFrame

public static mFrame appFrame

platform

public static java.lang.String platform

monoMode

protected boolean monoMode

myGraphics

protected mGraphics myGraphics
Constructor Detail

mApp

public mApp()
Method Detail

repaintNow

public void repaintNow(waba.fx.Rect area)

onPaint

public void onPaint(waba.fx.Graphics g)
Overrides:
onPaint in class waba.ui.Control

paintChildren

public void paintChildren(waba.fx.Graphics gr,
                          int x,
                          int y,
                          int width,
                          int height)
Overrides:
paintChildren in class waba.ui.Container

canExit

protected boolean canExit(int code)

tryExit

public void tryExit(int code)

setRect

public void setRect(int x,
                    int y,
                    int w,
                    int h)
Overrides:
setRect in class waba.ui.Control

show

public void show(mFrame f,
                 boolean fullSize)

requestTick

public static final int requestTick(TimerProc who,
                                    int milli)
This results in a single call to the ticked() method of the TimerProc, unless cancelTimer() is called first.

requestTimer

public static final int requestTimer(TimerProc who,
                                     int milli)
This results in regular calls to the ticked() method of the TimerProc until cancelTimer() is called.

cancelTimer

public static final void cancelTimer(int timerId)

onEvent

public void onEvent(waba.ui.Event ev)
Overrides:
onEvent in class waba.ui.Control

addFont

public static void addFont(waba.fx.Font which,
                           java.lang.String name)

findFont

public static waba.fx.Font findFont(java.lang.String name)
Find a font

findFont

public static waba.fx.Font findFont(java.lang.String name,
                                    boolean doDefault)
Find a font

setupFonts

public static void setupFonts()

changeMonoMode

public void changeMonoMode()

requestCallBack

public static void requestCallBack(waba.ui.Control from,
                                   java.lang.Object data)

_onTimerTick

public void _onTimerTick()
Overrides:
_onTimerTick in class waba.ui.MainWindow

_setTimerInterval

public void _setTimerInterval(int time)
Overrides:
_setTimerInterval in class waba.ui.MainWindow

getGraphics

public waba.fx.Graphics getGraphics(boolean newOne)