Interface Watchable

  • All Known Implementing Classes:
    BaseWatchable, PDFParser, PDFRenderer

    public interface Watchable
    An interface for rendering or parsing, which can be stopped and started.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getStatus()
      Get the status of this watchable
      void go()
      Start this watchable and run until it is finished or stopped.
      void go​(int steps)
      Start this watchable and run for the given number of steps or until finished or stopped.
      void go​(long millis)
      Start this watchable and run for the given amount of time, or until finished or stopped.
      void stop()
      Stop this watchable.
    • Method Detail

      • getStatus

        int getStatus()
        Get the status of this watchable
        Returns:
        one of the well-known statuses
      • stop

        void stop()
        Stop this watchable. Stop will cause all processing to cease, and the watchable to be destroyed.
      • go

        void go()
        Start this watchable and run until it is finished or stopped. Note the watchable may be stopped if go() with a different time is called during execution.
      • go

        void go​(int steps)
        Start this watchable and run for the given number of steps or until finished or stopped.
        Parameters:
        steps - the number of steps to run for
      • go

        void go​(long millis)
        Start this watchable and run for the given amount of time, or until finished or stopped.
        Parameters:
        millis - the number of milliseconds to run for