public class SVGScoreBar extends Object
Modifier and Type | Field and Description |
---|---|
private NumberFormat |
format
Number format, set to print the actual score
|
protected String |
label
Label (on the right)
|
protected double |
max
Value, minimum and maximum values
|
protected double |
min
Value, minimum and maximum values
|
protected boolean |
reversed
Reversed flag.
|
protected double |
val
Value, minimum and maximum values
|
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 val,
double min,
double max)
Set the fill of the score bar.
|
void |
setReversed(boolean reversed)
Set the reversed flag.
|
void |
showValues(NumberFormat format)
To show score values, set a number format
|
protected double val
protected double min
protected double max
protected boolean reversed
protected String label
private NumberFormat format
public void setFill(double val, double min, double max)
val
- Valuemin
- Minimum valuemax
- Maximum valuepublic void setReversed(boolean reversed)
reversed
- Reversed flag.public void addLabel(String text)
text
- Label textpublic void showValues(NumberFormat format)
format
- Number formatCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.