Class JmolThread

    • Field Detail

      • 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​(Object manager,
                              Viewer vwr,
                              Object params)
        Parameters:
        manager -
        vwr -
        params -
        Returns:
        TODO
      • setViewer

        public void setViewer​(Viewer vwr,
                              String name)
      • 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 Thread
      • run

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

        protected void oops​(Exception e)
      • runSleep

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

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

        protected boolean checkInterrupted​(JmolThread ref)
      • reset

        public void reset()