|
|||||||||
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.DigitalClock
The class DigitalClock
provides a digital alarm clock.
Time
,
RTC
Field Summary | |
static boolean |
NO
|
static boolean |
YES
|
Fields inherited from class jcontrol.ui.vole.Component |
focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
DigitalClock(int x,
int y,
boolean showAlarm,
boolean showDate)
Constructor. |
Method Summary | |
void |
alarm(int ahour,
int amin,
int adow,
int amode)
|
void |
colon()
Draws the colon between hours and minutes. |
void |
date(int year,
int mon,
int day,
int dow)
Draws the date. |
void |
paint()
Paints this component. |
void |
time(int hour,
int min)
Draws the time. |
void |
update(boolean time1,
boolean date,
boolean alarm)
Updates the clock. |
Methods inherited from class jcontrol.ui.vole.Component |
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setLocation, setParent, setVisible, transferFocus, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, notifyAll, wait |
Field Detail |
public static final boolean NO
public static final boolean YES
Constructor Detail |
public DigitalClock(int x, int y, boolean showAlarm, boolean showDate)
x
- the x coordinatey
- the y coordinateshowAlarm
- if true
, the alarm time is shownshowDate
- if true
, the date is shownMethod Detail |
public void alarm(int ahour, int amin, int adow, int amode)
public void colon()
public void date(int year, int mon, int day, int dow)
year
- yearmon
- monthday
- daydow
- day of weekpublic void paint()
Component
paint
in class Component
public void time(int hour, int min)
hour
- hoursmin
- minutespublic void update(boolean time1, boolean date, boolean alarm)
time1
- update the time (YES, NO).date
- update the date (YES, NO).alarm
- update the alarm (YES, NO).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |