wjhk.jupload2.gui
Class LoadImageThread

java.lang.Object
  extended by java.lang.Thread
      extended by wjhk.jupload2.gui.LoadImageThread
All Implemented Interfaces:
Runnable

 class LoadImageThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  File file
          The file that is to be loaded.
(package private)  JUploadImagePreview jUploadImagePreview
          The preview, where the resulting picture must be displayed.
(package private) static Cursor waitCursor
          That cursor that will be used each time the user select a new file, when resizing the picture before displaying in the preview accessory.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LoadImageThread(JUploadImagePreview jUploadImagePreview, File file)
          Only constructor, with the file to be loaded.
 
Method Summary
 void run()
          The work itself: it allows the loading and resizing of the picture in a separate thread, to avoid blocking the user interface.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

waitCursor

static final Cursor waitCursor
That cursor that will be used each time the user select a new file, when resizing the picture before displaying in the preview accessory.


file

File file
The file that is to be loaded.


jUploadImagePreview

JUploadImagePreview jUploadImagePreview
The preview, where the resulting picture must be displayed.

Constructor Detail

LoadImageThread

LoadImageThread(JUploadImagePreview jUploadImagePreview,
                File file)
Only constructor, with the file to be loaded.

Parameters:
file - The file to load, once the thread is started.
Method Detail

run

public void run()
The work itself: it allows the loading and resizing of the picture in a separate thread, to avoid blocking the user interface.

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