jwo.landserf.process
Class DeleteThread

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

public class DeleteThread
extends LSThread

Deletes a spatial object from the GISFrame.

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
DeleteThread(GISFrame gisFrame, SpatialObject spObj)
          Deletes the given spatial object.
DeleteThread(GISFrame gisFrame, Vector spObjects)
          Deletes the spatial objects stored in the given collection.
 
Method Summary
 void doProcessing()
          Deletes the spatial object(s) requested from the GISFrame provided to the constructor.
 
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

DeleteThread

public DeleteThread(GISFrame gisFrame,
                    SpatialObject spObj)
Deletes the given spatial object.

Parameters:
gisFrame - Frame holding spatial objects and in which to report results.
spObj - Spatial object to delete.

DeleteThread

public DeleteThread(GISFrame gisFrame,
                    Vector spObjects)
Deletes the spatial objects stored in the given collection.

Parameters:
gisFrame - Frame holding spatial objects and in which to report results.
spObjects - Collection of spatial objects to delete.
Method Detail

doProcessing

public void doProcessing()
Deletes the spatial object(s) requested from the GISFrame provided to the constructor. This method can be called directly, or indirectly by running this as a threaded process (e.g. myDeleteThread.start()).

Specified by:
doProcessing in class LSThread


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