Class ColladaViewer.WorkerThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ColladaViewer

    public static class ColladaViewer.WorkerThread
    extends java.lang.Thread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerThread​(java.lang.Object colladaSource, Position position, ColladaViewer.AppFrame appFrame)
      Creates a new worker thread from a specified colladaSource and appFrame.
    • 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 ColladaRoot, then adds the new ColladaRoot to this worker thread's AppFrame.
      • 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WorkerThread

        public WorkerThread​(java.lang.Object colladaSource,
                            Position position,
                            ColladaViewer.AppFrame appFrame)
        Creates a new worker thread from a specified colladaSource and appFrame.
        Parameters:
        colladaSource - the source of the COLLADA file to load. May be a File, a URL, or an InputStream, or a String identifying a file path or URL.
        position - the geographic position of the COLLADA model.
        appFrame - the AppFrame in which to display the COLLADA source.
    • Method Detail

      • run

        public void run()
        Loads this worker thread's COLLADA source into a new ColladaRoot, then adds the new ColladaRoot to this worker thread's AppFrame.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread