com.partnersoft.gui
Class AnimationRepaintThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.partnersoft.gadgets.LoopingThread
          extended by com.partnersoft.gui.AnimationRepaintThread
All Implemented Interfaces:
java.lang.Runnable

public class AnimationRepaintThread
extends LoopingThread

A thread that calls repaint() on the given component based on looping thread duration.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

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
AnimationRepaintThread(java.lang.String name, java.awt.Component component, Duration interval)
           
 
Method Summary
 java.awt.Component getComponent()
           
 void runTask()
          By default, this runs the runnable.
 
Methods inherited from class com.partnersoft.gadgets.LoopingThread
getInterval, getTask, isRunning, pauseLooping, resumeLooping, run, setInterval, setTask, start, stopRunning
 
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, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnimationRepaintThread

public AnimationRepaintThread(java.lang.String name,
                              java.awt.Component component,
                              Duration interval)
Method Detail

runTask

public void runTask()
             throws java.lang.Exception
Description copied from class: LoopingThread
By default, this runs the runnable. Subclasses may also override it directly (e.g. in anonymous or inner classes). Exceptions will be caught and reported but will stop the thread.

Overrides:
runTask in class LoopingThread
Throws:
java.lang.Exception

getComponent

public java.awt.Component getComponent()