Interface Spinner
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 Summary
Modifier and TypeFieldDescriptionstatic final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
static final String[]
-
Method Summary
-
Field Details
-
LINE1
-
DOTS1
-
DOTS2
-
DOTS3
-
DOTS4
-
DOTS5
-
DOTS6
-
DOTS7
-
DOTS8
-
DOTS9
-
DOTS10
-
DOTS11
-
DOTS12
-
DOTS13
-
DOTS14
-
-
Method Details
-
getFrames
String[] getFrames()Gets a frame characters. Type isString
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
ConstructSpinner
from given frames and interval.- Parameters:
frames
- the spinner framesinterval
- the spinner interval- Returns:
- a Spinner implementation
-