jwo.landserf.process
Class UpdateThread

java.lang.Object
  extended by java.lang.Thread
      extended by jwo.landserf.process.LSThread
          extended by jwo.landserf.process.UpdateThread
All Implemented Interfaces:
Runnable, JWInterruptionListener

public class UpdateThread
extends LSThread

Updates spatial objects after they have been edited.

Version:
2.3, 17th July, 2006.
Author:
Jo Wood

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
UpdateThread(GISFrame gisFrame, boolean recalcRaster)
          Updates the display of changed spatial objects.
UpdateThread(GISFrame gisFrame, boolean recalcRaster, String customMessage)
          Updates the display of changed spatial objects and reports the given message.
 
Method Summary
 void doProcessing()
          Displays the spatial objects as a threaded process.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setFinalMessage, setMessage
 
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

UpdateThread

public UpdateThread(GISFrame gisFrame,
                    boolean recalcRaster)
Updates the display of changed spatial objects.

Parameters:
gisFrame - Frame identifying spatial objects.
recalcRaster - Indicates whether a raster has been updated and therefore needs redrawing.

UpdateThread

public UpdateThread(GISFrame gisFrame,
                    boolean recalcRaster,
                    String customMessage)
Updates the display of changed spatial objects and reports the given message.

Parameters:
gisFrame - Frame identifying spatial objects.
recalcRaster - Indicates whether a raster has been updated and therefore needs redrawing.
customMessage - Message to display when update completed.
Method Detail

doProcessing

public void doProcessing()
Displays the spatial objects as a threaded process. This is useful to ensure dynamic changes are updated in the user interface.

Note that this method will be called automatically if this is run as a threaded process (e.g. myUpdate.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009