public class ProgressBar extends MarkdownElement
| Modifier and Type | Field and Description |
|---|---|
static char |
CLOSING_CHAR_DEFAULT |
static char |
EMPTY_CHAR_DEFAULT |
static char |
FILL_CHAR_DEFAULT |
static int |
LENGTH_LARGE |
static int |
LENGTH_NORMAL |
static int |
LENGTH_SMALL |
static char |
OPENING_CHAR_DEFAULT |
| Constructor and Description |
|---|
ProgressBar(double value) |
ProgressBar(double value,
int length) |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateFilledCharsCount(double value,
double minimumValue,
double maximumValue,
int length) |
char |
getClosingChar() |
char |
getEmptyChar() |
char |
getFillChar() |
int |
getLength() |
double |
getMaximumValue() |
double |
getMinimumValue() |
char |
getOpeningChar() |
static java.lang.String |
getReadablePercentage(double value,
double minimumValue,
double maximumValue) |
static java.lang.String |
getReadableValue(double value) |
double |
getValue() |
boolean |
isAppendingPercentage() |
boolean |
isAppendingValue() |
java.lang.String |
serialize()
Attempts to generate a String representing this markdown element.
|
void |
setAppendPercentage(boolean appendPercentage) |
void |
setAppendValue(boolean appendValue) |
void |
setClosingChar(char closingChar) |
void |
setEmptyChar(char emptyChar) |
void |
setFillChar(char fillChar) |
void |
setLength(int length) |
void |
setMaximumValue(double maximumValue) |
void |
setMinimumValue(double minimumValue) |
void |
setOpeningChar(char openingChar) |
void |
setValue(double value) |
getSerialized, getSerialized, invalidateSerialized, setSerialized, toMarkdownElement, toStringpublic static final int LENGTH_SMALL
public static final int LENGTH_NORMAL
public static final int LENGTH_LARGE
public static final char OPENING_CHAR_DEFAULT
public static final char CLOSING_CHAR_DEFAULT
public static final char FILL_CHAR_DEFAULT
public static final char EMPTY_CHAR_DEFAULT
public ProgressBar(double value)
public ProgressBar(double value,
int length)
public java.lang.String serialize()
throws MarkdownSerializationException
MarkdownElementserialize in class MarkdownElementMarkdownSerializationException - If unable to generate a markdown Stringpublic static int calculateFilledCharsCount(double value,
double minimumValue,
double maximumValue,
int length)
public static java.lang.String getReadableValue(double value)
public static java.lang.String getReadablePercentage(double value,
double minimumValue,
double maximumValue)
public char getOpeningChar()
public void setOpeningChar(char openingChar)
public char getClosingChar()
public void setClosingChar(char closingChar)
public char getFillChar()
public void setFillChar(char fillChar)
public char getEmptyChar()
public void setEmptyChar(char emptyChar)
public int getLength()
public void setLength(int length)
public double getValue()
public void setValue(double value)
public double getMinimumValue()
public void setMinimumValue(double minimumValue)
public double getMaximumValue()
public void setMaximumValue(double maximumValue)
public boolean isAppendingValue()
public void setAppendValue(boolean appendValue)
public boolean isAppendingPercentage()
public void setAppendPercentage(boolean appendPercentage)