gui.utils
Class Stepper

java.lang.Object
  extended by java.lang.Thread
      extended by gui.utils.Stepper
All Implemented Interfaces:
java.lang.Runnable

public class Stepper
extends java.lang.Thread

Trida, ktera generuje kroky.


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
Stepper(int time, Steped component)
          Vytvori generator kroku se zadanym casem a pro tridu, ktera implementuje rozhrani Steped.
Stepper(Steped component)
          Vytvori krokovac pro objekt, ktery implementuje rozhrani Steped.
 
Method Summary
 void endStepping()
          Ukonci automaticke krokovani.
 void run()
          Spusti generovani kroku az do okamziku, nez je vraceno -1 a nebo nez je zavolano steppingEnded().
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, 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

Stepper

public Stepper(int time,
               Steped component)
Vytvori generator kroku se zadanym casem a pro tridu, ktera implementuje rozhrani Steped.

Parameters:
time - cas jednoho kroku
component - krokovany objekt

Stepper

public Stepper(Steped component)
Vytvori krokovac pro objekt, ktery implementuje rozhrani Steped.

Parameters:
component - krokovany objekt
Method Detail

run

public void run()
Spusti generovani kroku az do okamziku, nez je vraceno -1 a nebo nez je zavolano steppingEnded().

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

endStepping

public void endStepping()
Ukonci automaticke krokovani.