Class DialClockFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----DialClockFrame
- public class DialClockFrame
- extends Frame
- implements Runnable
This is the frame to use for each of the dial clocks launched.
The frame is created and starts its own thread.
-
DialClockFrame()
- Constructor sets up frame and starts thread running for this
newly created object.
-
getThread()
- Return the thread running the frame.
-
handleEvent(Event)
-
-
paint(Graphics)
- Calls pack() to make the frame as small as possible regardless of
any attempts to resize it.
-
run()
- Main loop for DialClockFrame.
-
update(TimeGrid)
- Called by TimeCalc (obserable object) when new TimeGrid info
is available to that we don't have to continually poll.
DialClockFrame
public DialClockFrame()
- Constructor sets up frame and starts thread running for this
newly created object.
getThread
public Thread getThread()
- Return the thread running the frame. Generally used by the caller
to stop the frame from running.
paint
public void paint(Graphics g)
- Calls pack() to make the frame as small as possible regardless of
any attempts to resize it.
- Overrides:
- paint in class Container
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
update
public void update(TimeGrid grid)
- Called by TimeCalc (obserable object) when new TimeGrid info
is available to that we don't have to continually poll.
run
public void run()
- Main loop for DialClockFrame. Sets up GUI and then relaxes.