|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jcontrol.ui.vole.Component
|
+--jcontrol.ui.vole.meter.AnalogClock
This class provides an analog clock for JControl.
(C) DOMOLOGIC Home Automation GmbH 2003
Time,
RTC| Field Summary | |
static boolean |
NO
|
protected int |
size
|
static boolean |
YES
|
| Fields inherited from class jcontrol.ui.vole.Component |
focusOwner, font, g, height, listener, parent, visible, width, x, y |
| Constructor Summary | |
protected |
AnalogClock()
Empty constructor for jcontrol.toolkit.Clock |
|
AnalogClock(int x,
int y,
int size)
Creates a clock. |
|
AnalogClock(int x,
int y,
int size,
boolean second)
Creates a clock. |
| Method Summary | |
void |
paint()
Repaints the clock dial. |
void |
setTime(int hours,
int minutes,
int seconds)
Sets a the specified time to the clock. |
boolean |
transferFocus()
We never gain the input focus. |
void |
update()
Updates the clock with the current time. |
| Methods inherited from class jcontrol.ui.vole.Component |
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setLocation, setParent, setVisible, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, notifyAll, wait |
| Field Detail |
public static final boolean NO
protected int size
public static final boolean YES
| Constructor Detail |
protected AnalogClock()
public AnalogClock(int x,
int y,
int size)
x - the upper left x coordinatey - the upper left y coordinatesize - the clock radius
public AnalogClock(int x,
int y,
int size,
boolean second)
x - the upper left x coordinatey - the upper left y coordinatesize - the clock radiussecond - show seconds (YES or NO)| Method Detail |
public void paint()
paint in class Component
public void setTime(int hours,
int minutes,
int seconds)
hours - hourspublic boolean transferFocus()
transferFocus in class Componentpublic void update()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||