|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.ascentphase.suit.Widget
|
+--org.ascentphase.suit.TitleBar
This widget draws the titlebar on the Panel.
| Field Summary | |
protected java.lang.String |
title
The text of the titlebar |
protected int |
width
The width, in pixels, of the titlebar |
| Fields inherited from class org.ascentphase.suit.Widget |
cmdToThrow |
| Constructor Summary | |
TitleBar(java.lang.String title,
int width)
Initialize the titlebar with the given text and width in pixels. |
|
| Method Summary | |
void |
paint(Graphics g)
Draws the widget. |
| Methods inherited from class org.ascentphase.suit.Widget |
contains, getCommand, keyPressed, keyReleased, pointerDragged, pointerPressed, pointerReleased, setCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String title
protected int width
| Constructor Detail |
public TitleBar(java.lang.String title,
int width)
title - the text title.width - the width of the titlebar in pixels.| Method Detail |
public void paint(Graphics g)
paint in class Widgetg - the Graphics object to draw with.
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||