objectdraw
Class AWTInitializer

java.lang.Object
  extended by java.lang.Thread
      extended by objectdraw.AWTInitializer
All Implemented Interfaces:
Runnable

 class AWTInitializer
extends Thread

Initializer is a thread that keeps trying to call WindowController's begin method until the WindowController's DrawingCanvas is properly initialized. This is necessary because there is sometimes a delay before the canvas' peer component is fully realized.

Version:
1.1.1 released February 2005

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  AWTWindowController windowController
          The WindowController whose begin method is being called
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AWTInitializer(AWTWindowController windowController)
          Constructs a new AWTInitializer.
 
Method Summary
 void run()
          Tries callBegin until the WindowController is set up and ready to have begin called on it.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

windowController

AWTWindowController windowController
The WindowController whose begin method is being called

Constructor Detail

AWTInitializer

public AWTInitializer(AWTWindowController windowController)
Constructs a new AWTInitializer.

Parameters:
windowController - the controller whose begin method needs to be called.
Method Detail

run

public void run()
Tries callBegin until the WindowController is set up and ready to have begin called on it.

Specified by:
run in interface Runnable
Overrides:
run in class Thread