Class LevelAdjustmentDialog.AdjustCommanderThread

Enclosing class:

protected class LevelAdjustmentDialog.AdjustCommanderThread
extends java.lang.Thread

The AdjustCommanderThread is a thread to control the adjust command to the target.

Because creating java.awt.Image is heavy, this thread restricts the adjust command twice in one second at most. As a result, the slider control becomes light weight.

Field Summary
private  double last_maximum
          The last maximum pixel value.
private  double last_minimum
          The last minimum pixel value.
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
Constructor Summary
protected LevelAdjustmentDialog.AdjustCommanderThread()
Method Summary
 void reset()
          Sets the last minimum and maximum pixel value as same as the dialog member fields.
 void run()
          Runs this thread.
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


private double last_minimum
The last minimum pixel value.


private double last_maximum
The last maximum pixel value.
Constructor Detail


protected LevelAdjustmentDialog.AdjustCommanderThread()
Method Detail


public void reset()
Sets the last minimum and maximum pixel value as same as the dialog member fields.


public void run()
Runs this thread.
run in class java.lang.Thread