Class JPanelMouse.PlayMouse

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

    class JPanelMouse.PlayMouse
    extends java.lang.Thread
    * Thread that plays. Must be a thread so that the stop and pause buttons work. Plays either one mouse event at a time, the whole list from the selected index, or the whole list continuously.
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      (package private) boolean forever
      DOCUMENT ME!
      (package private) boolean selectedToEnd
      DOCUMENT ME!
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayMouse​(boolean selectedToEnd, boolean forever)
      Constructs a new thread and initializes the parameters which dictate what kind of play this is
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Runs the thread and plays according to the established parameters.
      • 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, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

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

      • forever

        boolean forever
        DOCUMENT ME!
      • selectedToEnd

        boolean selectedToEnd
        DOCUMENT ME!
    • Constructor Detail

      • PlayMouse

        public PlayMouse​(boolean selectedToEnd,
                         boolean forever)
        Constructs a new thread and initializes the parameters which dictate what kind of play this is.*
        Parameters:
        selectedToEnd - true indicates play the list of mouse events in sequential order from the first selected index. false indicates only play the selected mouse event. *
        forever - true indicates keep playing mouse events until the stop or pause button is pressed.
    • Method Detail

      • run

        public void run()
        Runs the thread and plays according to the established parameters.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread