Class SpinThread

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SpinThread
    extends JmolThread
    • 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
      SpinThread()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void doTransform()  
      protected void run1​(int mode)
      Java: run1(INIT) while(!interrupted()) { run1(MAIN) } run1(FINISH) JavaScript: run1(INIT) run1(MAIN) --> setTimeout to run1(CHECK) or run1(FINISH) and return run1(CHECK) --> setTimeout to run1(CHECK) or run1(MAIN) or run1(FINISH) and return
      int setManager​(java.lang.Object manager, Viewer vwr, java.lang.Object params)  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • endDegrees

        private float endDegrees
      • endPositions

        private javajs.util.Lst<javajs.util.P3> endPositions
      • dihedralList

        private float[] dihedralList
      • nDegrees

        private float nDegrees
      • bsAtoms

        private BS bsAtoms
      • isNav

        private boolean isNav
      • isGesture

        private boolean isGesture
      • myFps

        private float myFps
      • angle

        private float angle
      • haveNotified

        private boolean haveNotified
      • index

        private int index
      • bsBranches

        private BS[] bsBranches
      • isDone

        private boolean isDone
      • m4

        private javajs.util.M4 m4
    • Constructor Detail

      • SpinThread

        public SpinThread()
    • Method Detail

      • setManager

        public int setManager​(java.lang.Object manager,
                              Viewer vwr,
                              java.lang.Object params)
        Overrides:
        setManager in class JmolThread
        Returns:
        TODO
      • run1

        protected void run1​(int mode)
                     throws java.lang.InterruptedException
        Java: run1(INIT) while(!interrupted()) { run1(MAIN) } run1(FINISH) JavaScript: run1(INIT) run1(MAIN) --> setTimeout to run1(CHECK) or run1(FINISH) and return run1(CHECK) --> setTimeout to run1(CHECK) or run1(MAIN) or run1(FINISH) and return
        Specified by:
        run1 in class JmolThread
        Throws:
        java.lang.InterruptedException
      • doTransform

        private void doTransform()