Interface Watchable

All Known Implementing Classes:
BaseWatchable, PDFParser, PDFRenderer

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constant COMPLETED=6
    static final int
    Constant ERROR=7
    static final int
    Constant NEEDS_DATA=3
    static final int
    Constant NOT_STARTED=1
    static final int
    Constant PAUSED=2
    static final int
    Constant RUNNING=4
    static final int
    Constant STOPPED=5
    static final int
    the possible statuses
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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 this watchable.
  • Field Details

  • Method Details

    • 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