|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--waba.ui.Control | +--waba.ui.Container | +--wabadma.ui.OutputBox
A waba container providing text output.
Field Summary | |
static int |
BEHAVIOUR_AUTOCLEAR
Behaviour of OutputBox is to clear & return to top when the bottom is reached. |
static int |
STYLE_CENTERED
Style of a line's text is centered. |
static int |
STYLE_NORMAL
Style of a line's text is normal (left-justified). |
Fields inherited from class waba.ui.Container |
children, tail |
Fields inherited from class waba.ui.Control |
height, next, parent, prev, width, x, y |
Constructor Summary | |
OutputBox(int x,
int y,
int w,
int h)
Construct an OutputBox with the given metrics using a default font. |
|
OutputBox(int x,
int y,
int w,
int h,
waba.fx.Font font)
Construct an OutputBox with the given metrics and given font. |
Method Summary | |
void |
clear()
Clear the OutputBox. |
boolean |
isActive()
Return true if the Dialog is currently being displayed. |
void |
onPaint(waba.fx.Graphics g)
|
void |
printFormatted(java.lang.String s)
Print a pre-formatted string to the OutputBox using STYLE_NORMAL. |
void |
printFormattedStringArray(java.lang.String[] sa)
Print an array of pre-formatted strings to the OutputBox using STYLE_NORMAL. |
void |
println()
Print an empty line. |
void |
println(java.lang.String s)
Print a line to the OutputBox. |
void |
printlnCentered(java.lang.String s)
Print a centered line to the OutputBox. |
void |
printlnStyled(java.lang.String string,
int style)
Print a styled line. |
Methods inherited from class waba.ui.Container |
add, findChild, paintChildren, remove |
Methods inherited from class waba.ui.Control |
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, onEvent, postEvent, removeTimer, repaint, setRect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BEHAVIOUR_AUTOCLEAR
public static final int STYLE_NORMAL
public static final int STYLE_CENTERED
Constructor Detail |
public OutputBox(int x, int y, int w, int h, waba.fx.Font font)
public OutputBox(int x, int y, int w, int h)
Method Detail |
public boolean isActive()
public void printlnStyled(java.lang.String string, int style)
string
- String to printstyle
- style to useSTYLE_NORMAL
,
STYLE_CENTERED
public void printlnCentered(java.lang.String s)
public void println(java.lang.String s)
public void printFormattedStringArray(java.lang.String[] sa)
public void printFormatted(java.lang.String s)
public void println()
public void clear()
public void onPaint(waba.fx.Graphics g)
onPaint
in class waba.ui.Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |