public class SVGScoreBar extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
fill
Fill value
|
private NumberFormat |
format
Number format, set to print the actual score
|
protected String |
label
Label (on the right)
|
protected double |
size
Total size
|
Constructor and Description |
---|
SVGScoreBar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLabel(String text)
Set label (right of the bar)
|
Element |
build(SVGPlot svgp,
double x,
double y,
double width,
double height)
Build the actual element
|
void |
setFill(double fill,
double size)
Set the fill of the score bar.
|
void |
showValues(NumberFormat format)
To show score values, set a number format
|
protected double fill
protected double size
protected String label
private NumberFormat format
public void setFill(double fill, double size)
fill
- Fill valuesize
- Total sizepublic void addLabel(String text)
text
- Label textpublic void showValues(NumberFormat format)
format
- Number format