net.aerith.misao.gui.dialog
Class LevelAdjustmentDialog.AdjustCommanderThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--net.aerith.misao.gui.dialog.LevelAdjustmentDialog.AdjustCommanderThread
Enclosing class:
LevelAdjustmentDialog

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

last_minimum

private double last_minimum
The last minimum pixel value.

last_maximum

private double last_maximum
The last maximum pixel value.
Constructor Detail

LevelAdjustmentDialog.AdjustCommanderThread

protected LevelAdjustmentDialog.AdjustCommanderThread()
Method Detail

reset

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

run

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