public class IndexAxisValueFormatter extends java.lang.Object implements IAxisValueFormatter
| Constructor and Description |
|---|
IndexAxisValueFormatter()
An empty constructor.
|
IndexAxisValueFormatter(java.util.Collection<java.lang.String> values)
Constructor that specifies axis labels.
|
IndexAxisValueFormatter(java.lang.String[] values)
Constructor that specifies axis labels.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormattedValue(float value,
AxisBase axis)
Called when a value from an axis is to be formatted
before being drawn.
|
java.lang.String[] |
getValues() |
void |
setValues(java.lang.String[] values) |
public IndexAxisValueFormatter()
public IndexAxisValueFormatter(java.lang.String[] values)
values - The values string arraypublic IndexAxisValueFormatter(java.util.Collection<java.lang.String> values)
values - The values string arraypublic java.lang.String getFormattedValue(float value,
AxisBase axis)
IAxisValueFormattergetFormattedValue in interface IAxisValueFormattervalue - the value to be formattedaxis - the axis the value belongs topublic java.lang.String[] getValues()
public void setValues(java.lang.String[] values)