public interface Spinner
Spinner represents how user is notified that something is happening using a traditional spinner concept. Represented in a console with an array of characters which are looped.
  • Field Details

    • LINE1

      static final String[] LINE1
    • DOTS1

      static final String[] DOTS1
    • DOTS2

      static final String[] DOTS2
    • DOTS3

      static final String[] DOTS3
    • DOTS4

      static final String[] DOTS4
    • DOTS5

      static final String[] DOTS5
    • DOTS6

      static final String[] DOTS6
    • DOTS7

      static final String[] DOTS7
    • DOTS8

      static final String[] DOTS8
    • DOTS9

      static final String[] DOTS9
    • DOTS10

      static final String[] DOTS10
    • DOTS11

      static final String[] DOTS11
    • DOTS12

      static final String[] DOTS12
    • DOTS13

      static final String[] DOTS13
    • DOTS14

      static final String[] DOTS14
  • Method Details

    • getFrames

      String[] getFrames()
      Gets a frame characters. Type is String to support unicode.
      Returns:
      a frame characters
    • getInterval

      int getInterval()
      Gets an interval which should be used to estimate how often frame should get changed. This is always an estimate as actual change depends how ofter console gets redrawn.
      Returns:
      an interval in milliseconds
    • of

      static Spinner of(String[] frames, int interval)
      Construct Spinner from given frames and interval.
      Parameters:
      frames - the spinner frames
      interval - the spinner interval
      Returns:
      a Spinner implementation