de.cbse.jeasy
Class JEWorker

java.lang.Object
  extended by java.lang.Thread
      extended by de.cbse.jeasy.JEWorker
All Implemented Interfaces:
java.lang.Runnable

public class JEWorker
extends java.lang.Thread

A runnable class to animate change of colors and size of panels.

Author:
Harry Pfohl

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int BGCOLOR
           
static int COLLAPSEEXPAND
           
static int CONTENTAREAFALSE
           
static int FGCOLOR
           
static int SCROLL
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JEWorker()
           
 
Method Summary
 void changeHeight(int newInt)
          To change the height.
 JEAnimation getAnimation()
           
 javax.swing.JComponent getJcomp()
           
 java.awt.Color getNewColor()
           
 int getNewInt()
           
 java.awt.Rectangle getNewRect()
           
 java.awt.Color getOldColor()
           
 int getOldInt()
           
 java.awt.Rectangle getOldRect()
           
 int getPropertieConstant()
           
 void interrupt()
          To call if the animation should come to end now.
 boolean isContentFalse()
           
 boolean isRunning()
           
 void run()
           
 void scrollRect(java.awt.Rectangle from, java.awt.Rectangle to)
          Scroll a scrollbar smoothly.
 void setAnimation(JEAnimation anim)
           
 void setContentFalse(boolean contentFalse)
           
 void setJcomp(javax.swing.JComponent jcomp)
           
 void setJETaskPane(JETaskPane jeTaskPane)
           
 void setNewColor(java.awt.Color newColor)
           
 void setNewInt(int newInt)
           
 void setNewRect(java.awt.Rectangle newRect)
           
 void setOldInt(int oldInt)
           
 void setOldRect(java.awt.Rectangle oldRect)
           
 void setParentTaskId(java.lang.String parentTaskId)
           
 void setPropertieConstant(int propertieConstant)
           
protected  void setRunning(boolean running)
           
 void waitUntilFinish()
          Waits until finished
 
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, 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
 

Field Detail

COLLAPSEEXPAND

public static final int COLLAPSEEXPAND
See Also:
Constant Field Values

FGCOLOR

public static final int FGCOLOR
See Also:
Constant Field Values

BGCOLOR

public static final int BGCOLOR
See Also:
Constant Field Values

CONTENTAREAFALSE

public static final int CONTENTAREAFALSE
See Also:
Constant Field Values

SCROLL

public static final int SCROLL
See Also:
Constant Field Values
Constructor Detail

JEWorker

public JEWorker()
Method Detail

changeHeight

public void changeHeight(int newInt)
To change the height.

Parameters:
newInt -

getAnimation

public JEAnimation getAnimation()

getJcomp

public javax.swing.JComponent getJcomp()

getNewColor

public java.awt.Color getNewColor()

getNewInt

public int getNewInt()

getNewRect

public java.awt.Rectangle getNewRect()

getOldColor

public java.awt.Color getOldColor()

getOldInt

public int getOldInt()

getOldRect

public java.awt.Rectangle getOldRect()

getPropertieConstant

public int getPropertieConstant()

interrupt

public void interrupt()
To call if the animation should come to end now.

Overrides:
interrupt in class java.lang.Thread

isContentFalse

public boolean isContentFalse()

isRunning

public boolean isRunning()

run

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

scrollRect

public void scrollRect(java.awt.Rectangle from,
                       java.awt.Rectangle to)
Scroll a scrollbar smoothly.


setAnimation

public void setAnimation(JEAnimation anim)

setContentFalse

public void setContentFalse(boolean contentFalse)

setJcomp

public void setJcomp(javax.swing.JComponent jcomp)

setJETaskPane

public void setJETaskPane(JETaskPane jeTaskPane)

setNewColor

public void setNewColor(java.awt.Color newColor)

setNewInt

public void setNewInt(int newInt)

setNewRect

public void setNewRect(java.awt.Rectangle newRect)

setOldInt

public void setOldInt(int oldInt)

setOldRect

public void setOldRect(java.awt.Rectangle oldRect)

setParentTaskId

public void setParentTaskId(java.lang.String parentTaskId)

setPropertieConstant

public void setPropertieConstant(int propertieConstant)

waitUntilFinish

public void waitUntilFinish()
Waits until finished


setRunning

protected void setRunning(boolean running)