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.


Constructor Index

 o DialClockFrame()
Constructor sets up frame and starts thread running for this newly created object.

Method Index

 o getThread()
Return the thread running the frame.
 o handleEvent(Event)
 o paint(Graphics)
Calls pack() to make the frame as small as possible regardless of any attempts to resize it.
 o run()
Main loop for DialClockFrame.
 o update(TimeGrid)
Called by TimeCalc (obserable object) when new TimeGrid info is available to that we don't have to continually poll.

Constructors

 o DialClockFrame
 public DialClockFrame()
Constructor sets up frame and starts thread running for this newly created object.

Methods

 o getThread
 public Thread getThread()
Return the thread running the frame. Generally used by the caller to stop the frame from running.

 o 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
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o 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.

 o run
 public void run()
Main loop for DialClockFrame. Sets up GUI and then relaxes.