Package gov.nasa.worldwindx.examples
Class ColladaViewer.WorkerThread
- java.lang.Object
-
- java.lang.Thread
-
- gov.nasa.worldwindx.examples.ColladaViewer.WorkerThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- ColladaViewer
public static class ColladaViewer.WorkerThread extends java.lang.Thread
-
-
Field Summary
Fields Modifier and Type Field Description protected ColladaViewer.AppFrame
appFrame
protected java.lang.Object
colladaSource
protected Position
position
-
Constructor Summary
Constructors Constructor Description WorkerThread(java.lang.Object colladaSource, Position position, ColladaViewer.AppFrame appFrame)
Creates a new worker thread from a specifiedcolladaSource
andappFrame
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Loads this worker thread's COLLADA source into a new
, then adds the newColladaRoot
ColladaRoot
to this worker thread'sAppFrame
.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, toString, yield
-
-
-
-
Field Detail
-
colladaSource
protected java.lang.Object colladaSource
-
position
protected Position position
-
appFrame
protected ColladaViewer.AppFrame appFrame
-
-
Constructor Detail
-
WorkerThread
public WorkerThread(java.lang.Object colladaSource, Position position, ColladaViewer.AppFrame appFrame)
Creates a new worker thread from a specifiedcolladaSource
andappFrame
.- Parameters:
colladaSource
- the source of the COLLADA file to load. May be aFile
, aURL
, or anInputStream
, or aString
identifying a file path or URL.position
- the geographic position of the COLLADA model.appFrame
- theAppFrame
in which to display the COLLADA source.
-
-
Method Detail
-
run
public void run()
Loads this worker thread's COLLADA source into a new
, then adds the newColladaRoot
ColladaRoot
to this worker thread'sAppFrame
.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-