|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwaba.ui.Control
waba.ui.Label
net.thestump.ghronos.ui.state.StateLabel
Provides an object to update the text and background of Ghronos' play indicator
Field Summary | |
static byte |
ID
Storable/factory id |
protected Mediator |
mediator
|
protected java.lang.String |
msg
|
protected static java.lang.String |
PREFIX
|
protected static StateLabel |
stateLabel
|
Fields inherited from class waba.ui.Label |
align, commonVGap |
Fields inherited from class waba.ui.Control |
AFTER, appId, asContainer, asWindow, backColor, backDis, BEFORE, BOTTOM, CENTER, enabled, FILL, FIT, fm, fmH, focusLess, font, foreColor, foreDis, height, LEFT, parent, PREFERRED, RANGE, RIGHT, SAME, TOP, visible, width, x, x2, y, y2 |
Constructor Summary | |
StateLabel()
|
Method Summary | |
protected int |
calculateMove()
Calculates current move count |
byte |
getID()
|
superwaba.ext.xplat.io.Storable |
getInstance()
|
static StateLabel |
instance()
Singleton accessor for the application's StateLabel |
void |
loadState(superwaba.ext.xplat.io.DataStream ds)
|
void |
saveState(superwaba.ext.xplat.io.DataStream ds)
|
void |
setActiveGameState(TimingStyle timingStyle)
Controls the status of a game in progress |
void |
setEndGameState(boolean topClockOutOfTime)
Controls the status of the end of a game |
void |
setPauseState()
Controls the status of a paused game |
void |
setStartGameState()
Controls the status of the beginning of a game |
Methods inherited from class waba.ui.Label |
canScroll, getPreferredHeight, getPreferredWidth, getText, onBoundsChanged, onColorsChanged, onFontChanged, onPaint, scroll, set3d, setInvert, setText |
Methods inherited from class waba.ui.Control |
addTimer, contains, createGraphics, getAbsoluteRect, getBackColor, getFont, getFontMetrics, getForeColor, getNext, getParent, getParentWindow, getPos, getRect, getSize, isDisplayed, isEnabled, isVisible, onEvent, onWindowPaintFinished, postEvent, removeTimer, repaint, repaintNow, requestFocus, setBackColor, setBackForeColors, setEnabled, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte ID
protected static final java.lang.String PREFIX
protected java.lang.String msg
protected Mediator mediator
protected static StateLabel stateLabel
Constructor Detail |
public StateLabel()
Method Detail |
public static StateLabel instance()
public void setPauseState()
BadArgumentException
- If there was an internal method call errorpublic void setStartGameState()
public void setEndGameState(boolean topClockOutOfTime)
topClockOutOfTime
- true if the top clock is all zeros, false otherwisepublic void setActiveGameState(TimingStyle timingStyle)
timingStyle
- The currently used timing style
BadArgumentException
- If there was an internal method call errorpublic byte getID()
getID
in interface superwaba.ext.xplat.io.Storable
public superwaba.ext.xplat.io.Storable getInstance()
getInstance
in interface superwaba.ext.xplat.io.Storable
public void loadState(superwaba.ext.xplat.io.DataStream ds)
loadState
in interface superwaba.ext.xplat.io.Storable
public void saveState(superwaba.ext.xplat.io.DataStream ds)
saveState
in interface superwaba.ext.xplat.io.Storable
protected int calculateMove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |