public final class NoSelectedDatasetTicksCallback extends Object implements TickCallback
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRECISION
Default precision, 1.
|
| Constructor and Description |
|---|
NoSelectedDatasetTicksCallback()
Creates the callback using the
DEFAULT_PRECISION. |
NoSelectedDatasetTicksCallback(int precision)
Creates the callback using the argument as amount of decimals places to apply to ticks.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecision()
Returns the precision applied to ticks.
|
String |
onCallback(Axis axis,
double value,
int index,
List<Double> values)
Changes the tick marks to include information about the data type.
|
public static final int DEFAULT_PRECISION
public NoSelectedDatasetTicksCallback()
DEFAULT_PRECISION.public NoSelectedDatasetTicksCallback(int precision)
precision - amount of decimals placespublic int getPrecision()
public String onCallback(Axis axis, double value, int index, List<Double> values)
TickCallbackonCallback in interface TickCallbackaxis - axis instance where this callback as been definedvalue - value of tickindex - index of tickvalues - list of all tick valuesnull the associated grid line will be hidden.