|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jwo.landserf.process.LSThread jwo.landserf.process.CentroidThread
public class CentroidThread
Allows polygon centroids to be found.
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 | |
---|---|
CentroidThread(GISFrame gisFrame)
Creates an object ready for vector map centroid calculation but does not perform the calculation. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Finds the centroids in the vector map supplied as a command parameter. |
void |
doProcessing()
Finds the centroids of all polygons in the primary vector map. |
VectorMap |
getCentroids()
Retrieves the vector map containing the centroids. |
LSCommand |
getCommand()
Reports the syntax required to allow vector map to be simplified via a scripting command. |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects and messages. |
Object |
getReturnedObject()
Returns the vector map containing the polygon centroids only. |
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 |
---|
public CentroidThread(GISFrame gisFrame)
gisFrame
- Frame holding spatial objects and in which to report results.Method Detail |
---|
public void doProcessing()
GISFrame
provided to the constructor
and selected as the new primary vector map. To retrieve it either call
getCentroids()
from this class or call gisFrame.getVectorMap1();
.
doProcessing
in class LSThread
GISFrame
public LSCommand getCommand()
getCommand
in interface Scriptable
public boolean doCommand(LSCommand command)
doCommand
in interface Scriptable
command
- Command containing parameter values.
public Object getReturnedObject()
getCentroids()
except that it is compatible with the scriptable interface.
If command has yet to be issued this will return null.
getReturnedObject
in interface Scriptable
public GISFrame getGISFrame()
getGISFrame
in interface Scriptable
public VectorMap getCentroids()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |