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 Detail

      • 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 java.lang.InterruptedException
        Blocks until the GUI loop has stopped
        Throws:
        java.lang.InterruptedException - In case this thread was interrupted while waiting for the GUI thread to exit
      • waitForStop

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