public class SpinningActivityIndicator extends ActivityIndicator
Component.Alignment
Modifier and Type | Field and Description |
---|---|
static char[] |
BARS
hyphen, backslash, pipe, forward slash
|
static char[] |
CHEVRONS
caret, greater-than, uppercase 'V', less-than
|
static char[] |
DICE
Unicode dice characters (not supported by all terminals)
|
static char[] |
TRIGRAMS
Unicode trigram characters (not supported by all terminals)
|
Constructor and Description |
---|
SpinningActivityIndicator()
Creates an ActivityIndicator which cycles through the
BARS characters. |
SpinningActivityIndicator(char[] chars) |
Modifier and Type | Method and Description |
---|---|
protected TerminalSize |
calculatePreferredSize() |
void |
clear() |
void |
repaint(TextGraphics graphics)
This is the main 'paint' method for a component, it's called when
lanterna wants the component to re-draw itself.
|
void |
tick()
Trigger an update indicating that activity occured.
|
addBorder, addComponentListener, getAlignment, getComponentListeners, getGUIScreen, getMinimumSize, getParent, getPreferredSize, getWindow, invalidate, isScrollable, isVisible, removeComponentListener, setAlignment, setParent, setPreferredSize, setVisible, transformAccordingToAlignment
public static char[] BARS
public static char[] CHEVRONS
public static char[] DICE
public static char[] TRIGRAMS
public SpinningActivityIndicator()
BARS
characters.public SpinningActivityIndicator(char[] chars)
public void tick()
ActivityIndicator
tick
in class ActivityIndicator
public void clear()
clear
in class ActivityIndicator
public void repaint(TextGraphics graphics)
Component
graphics
- TextGraphics object to use for drawing the component and
getting information about the drawing contextprotected TerminalSize calculatePreferredSize()
calculatePreferredSize
in class AbstractComponent
Copyright © 2015. All Rights Reserved.