jwo.landserf.process
Class UpdateThread

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

public class UpdateThread
extends LSThread

Updates spatial objects after they have been edited.

Version:
2.2, 26th February, 2005.
Author:
Jo Wood

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, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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-2005, last modified, 11th March, 2005