|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.ui.vole.Component
jcontrol.ui.vole.meter.AnalogClock
public class AnalogClock
This class provides an analog clock for JControl.
(c) Copyright 2003-2005 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, notifyAll, 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 paint()
paint in class Component
public void setValue(int hour,
int minute,
int second)
hour - hourminute - minutesecond - secondpublic boolean transferFocus()
transferFocus in class Componentpublic void update()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||