showmap
Class LoadDrawables

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--showmap.LoadDrawables
All Implemented Interfaces:
java.lang.Runnable

public class LoadDrawables
extends java.lang.Thread

Class for reading drawable objects from a file in a separate thread.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LoadDrawables(ShowMap applet, java.net.URL[] url, int objNum)
          Constructor.
LoadDrawables(ShowMap applet, java.net.URL url, int objNum)
          Constructor.
 
Method Summary
 void run()
          Reads the drawable objects using ShowMap.readDrawables.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

LoadDrawables

public LoadDrawables(ShowMap applet,
                     java.net.URL[] url,
                     int objNum)
Constructor.

Parameters:
applet - the ShowMap applet
url - one or more URLs to read
objNum - number of objects read before

LoadDrawables

public LoadDrawables(ShowMap applet,
                     java.net.URL url,
                     int objNum)
Constructor.

Parameters:
applet - the ShowMap applet
url - the URL to read
objNum - number of objects read before
Method Detail

run

public void run()
Reads the drawable objects using ShowMap.readDrawables. After the reading, the state of the applet is set to ShowMap.COMPLETE and the map is drawn.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread