|
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.Button
A button component which the user presses to start an application process.
| Field Summary | |
protected int |
btnHeight
|
protected int |
btnWidth
|
protected java.lang.String |
label
|
protected boolean |
penDown
|
| Fields inherited from class org.ascentphase.suit.Widget |
cmdToThrow |
| Constructor Summary | |
Button(java.lang.String text)
Initializes a button with the given text. |
|
| Method Summary | |
boolean |
contains(int x,
int y)
Returns whether the given coordinate lies within this widget's area of interest. |
void |
paint(Graphics g)
Draws the widget. |
Command |
pointerPressed(int x,
int y)
Method called by the widget's containing Panel when a pointer is pressed over the widget area. |
Command |
pointerReleased(int x,
int y)
Method called by the widget's containing Panel when a pointer is released over the widget area. |
| Methods inherited from class org.ascentphase.suit.Widget |
getCommand, keyPressed, keyReleased, pointerDragged, 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 label
protected int btnWidth
protected int btnHeight
protected boolean penDown
| Constructor Detail |
public Button(java.lang.String text)
text - the text to display on the Button.| Method Detail |
public void paint(Graphics g)
paint in class Widgetg - the Graphics object to draw with.
public boolean contains(int x,
int y)
Widget
contains in class Widgetx - the x coordinate.y - the y coordinate.
public Command pointerPressed(int x,
int y)
Widget
pointerPressed in class Widgetx - the x-coordinate relative to the widget's origin.y - the y-coordinate relative to the widget's origin.
public Command pointerReleased(int x,
int y)
Widget
pointerReleased in class Widgetx - the x-coordinate relative to the widget's origin.y - the y-coordinate relative to the widget's origin.
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||