net.sf.sdedit.ui.impl
Class RedrawThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.sdedit.ui.components.DelayedActivity
          extended by net.sf.sdedit.ui.impl.RedrawThread
All Implemented Interfaces:
Runnable

public class RedrawThread
extends DelayedActivity

A RedrawThread is associated to a text area. It updates the diagram displayed when text has been entered and a certain amount of time has passed since the last key stroke.

Author:
Markus Strauch

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RedrawThread(UserInterfaceImpl ui)
          Creates a new RedrawThread.
 
Method Summary
protected  int getDelay()
           
protected  void perform()
          Performs the desired activity if something has changed (as indicated by DelayedActivity.indicateChange(), the delay has passed and no change has been indicated in that time.
 
Methods inherited from class net.sf.sdedit.ui.components.DelayedActivity
indicateChange, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedrawThread

public RedrawThread(UserInterfaceImpl ui)
Creates a new RedrawThread.

Parameters:
ui -
Method Detail

getDelay

protected int getDelay()
Specified by:
getDelay in class DelayedActivity

perform

protected void perform()
Description copied from class: DelayedActivity
Performs the desired activity if something has changed (as indicated by DelayedActivity.indicateChange(), the delay has passed and no change has been indicated in that time. This method is always invoked in a monitor that is guarded by the lock associated with this DelayedActivity.

Specified by:
perform in class DelayedActivity


Copyright © 2011. All Rights Reserved.