Class 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
      JmolThread()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean checkInterrupted​(JmolThread ref)  
      void interrupt()  
      protected void oops​(java.lang.Exception e)  
      void reset()  
      void resumeEval()  
      void run()  
      protected abstract void run1​(int mode)  
      protected boolean runSleep​(int millis, int runPtr)  
      void setEval​(JmolScriptEvaluator eval)
      JavaScript only -- -- scriptDelay, moveTo, spin -- save context for restoration later -- move program counter forward one command
      int setManager​(java.lang.Object manager, Viewer vwr, java.lang.Object params)  
      void setViewer​(Viewer vwr, java.lang.String name)  
      void start()  
      • 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

      • name

        public java.lang.String name
      • threadIndex

        private static int threadIndex
      • haveReference

        protected boolean haveReference
      • hoverEnabled

        protected boolean hoverEnabled
      • startTime

        protected long startTime
      • targetTime

        protected long targetTime
      • lastRepaintTime

        protected long lastRepaintTime
      • currentTime

        protected long currentTime
      • sleepTime

        protected int sleepTime
      • isJS

        protected boolean isJS
      • stopped

        protected boolean stopped
      • isReset

        protected boolean isReset
      • useTimeout

        protected boolean useTimeout
      • junk

        double junk
    • Constructor Detail

      • JmolThread

        public JmolThread()
    • Method Detail

      • setManager

        public int setManager​(java.lang.Object manager,
                              Viewer vwr,
                              java.lang.Object params)
        Parameters:
        manager -
        vwr -
        params -
        Returns:
        TODO
      • setViewer

        public void setViewer​(Viewer vwr,
                              java.lang.String name)
      • run1

        protected abstract void run1​(int mode)
                              throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • setEval

        public void setEval​(JmolScriptEvaluator eval)
        JavaScript only -- -- scriptDelay, moveTo, spin -- save context for restoration later -- move program counter forward one command
        Parameters:
        eval -
      • resumeEval

        public void resumeEval()
      • start

        public void start()
        Overrides:
        start in class java.lang.Thread
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • oops

        protected void oops​(java.lang.Exception e)
      • runSleep

        protected boolean runSleep​(int millis,
                                   int runPtr)
                            throws java.lang.InterruptedException
        Parameters:
        millis -
        runPtr -
        Returns:
        true if we can continue on with this thread (Java, not JavaScript)
        Throws:
        java.lang.InterruptedException
      • interrupt

        public void interrupt()
        Overrides:
        interrupt in class java.lang.Thread
      • checkInterrupted

        protected boolean checkInterrupted​(JmolThread ref)
      • reset

        public void reset()