siuying.gm.app.gmailer4j.util
Class Blinker

java.lang.Object
  extended by java.lang.Thread
      extended by siuying.gm.app.gmailer4j.util.Blinker
All Implemented Interfaces:
java.lang.Runnable

public class Blinker
extends java.lang.Thread

Author:
Matthias Cullmann Blinker b = new Blinker(); b.setDuration(10000); b.start(); Blinker.blink(KeyEvent.VK_NUM_LOCK,300,300,5000);

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Blinker()
           
Blinker(int keyCode)
           
Blinker(int keyCode, long on, long off, long duration)
           
 
Method Summary
static void blink()
           
static void blink(int keyCode)
           
static void blink(int keyCode, long on, long off, int duration)
           
 boolean dead()
           
 void die()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setDuration(long i)
           
static void unblink()
           
static void unblink(int keyCode)
           
 
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
 

Constructor Detail

Blinker

public Blinker()

Blinker

public Blinker(int keyCode)

Blinker

public Blinker(int keyCode,
               long on,
               long off,
               long duration)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

die

public void die()

dead

public boolean dead()

blink

public static void blink()

blink

public static void blink(int keyCode)

blink

public static void blink(int keyCode,
                         long on,
                         long off,
                         int duration)

unblink

public static void unblink()

unblink

public static void unblink(int keyCode)

setDuration

public void setDuration(long i)

main

public static void main(java.lang.String[] args)