Interface AsynchronousTextGUIThread

All Superinterfaces:
TextGUIThread
All Known Implementing Classes:
SeparateTextGUIThread

public interface AsynchronousTextGUIThread extends TextGUIThread
Extended interface of TextGUIThread for implementations that uses a separate thread for all GUI event processing and updating.
  • Method Details

    • start

      void start()
      Starts the AsynchronousTextGUIThread, typically meaning that the event processing loop will start.
    • stop

      void stop()
      Requests that the AsynchronousTextGUIThread stops, typically meaning that the event processing loop will exit
    • waitForStop

      void waitForStop() throws InterruptedException
      Blocks until the GUI loop has stopped
      Throws:
      InterruptedException - In case this thread was interrupted while waiting for the GUI thread to exit
    • waitForStop

      void waitForStop(long time, TimeUnit unit) throws InterruptedException
      Blocks until the GUI loop has stopped
      Throws:
      InterruptedException - In case this thread was interrupted while waiting for the GUI thread to exit
    • getState

      Returns the current status of this GUI thread
      Returns:
      Current status of the GUI thread