Class AbstractConsoleAnimation
java.lang.Object
eu.cloudnetservice.node.impl.console.animation.AbstractConsoleAnimation
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ConsoleProgressAnimation, ConsoleSetupAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Consoleprotected intprotected final Collection<Runnable> protected static final org.slf4j.Loggerprotected Instantprotected booleanprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFinishHandler(@NonNull Runnable finishHandler) voidaddToCursor(int cursor) console()voidprotected voidvoidprotected abstract booleanprotected voidvoidfinal voidrun()booleanint
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
updateInterval
protected final int updateInterval -
finishHandler
-
cursorUp
protected int cursorUp -
staticCursor
protected boolean staticCursor -
console
-
startInstant
-
-
Constructor Details
-
AbstractConsoleAnimation
public AbstractConsoleAnimation(int updateInterval)
-
-
Method Details
-
addToCursor
public void addToCursor(int cursor) -
addFinishHandler
-
print
-
eraseLastLine
protected void eraseLastLine() -
handleTick
protected abstract boolean handleTick()- Returns:
- if the animation is finished and should be cancelled
-
run
-
handleDone
public void handleDone() -
staticCursor
public boolean staticCursor() -
updateInterval
public int updateInterval() -
console
-
console
-
resetConsole
public void resetConsole()
-