objectdraw
Class Initializer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--objectdraw.Initializer
All Implemented Interfaces:
java.lang.Runnable

public class Initializer
extends java.lang.Thread

Initializer is a thread that keeps trying to call WindowController's callBegin method and will try until it succeeds. This exists because the applet sometimes would try to add something to a Canvas when the Canvas did not exist yet (thus its Graphics was null).


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Initializer(WindowController windowController)
          Constructs a new Initializer.
 
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, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Initializer

public Initializer(WindowController windowController)
Constructs a new Initializer.
Method Detail

run

public void run()
Tries callBegin until the WindowController is set up and ready to have begin called on it.
Overrides:
run in class java.lang.Thread