jwo.landserf.process
Class UpdateThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
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
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 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 |
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.
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