|
|||||||||
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
public class AnalogClock
This class provides an analog clock for JControl.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Time
,
RTC
Field Summary |
---|
Fields inherited from class jcontrol.ui.vole.Component |
---|
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
---|---|
AnalogClock(int x,
int y,
int size,
boolean showSeconds)
Creates a clock. |
Method Summary | |
---|---|
void |
paint()
Repaints the clock dial. |
void |
setValue(int hour,
int minute,
int second)
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, setParent, setVisible, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Constructor Detail |
---|
public AnalogClock(int x, int y, int size, boolean showSeconds)
x
- the upper left x coordinatey
- the upper left y coordinatesize
- the clock radiusshowSeconds
- show the second needle (true or false)Method Detail |
---|
public void update()
public void setValue(int hour, int minute, int second)
hour
- hourminute
- minutesecond
- secondpublic void paint()
paint
in class Component
public boolean transferFocus()
transferFocus
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |