public final class NoSelectedDatasetTicksCallback extends Object implements TickCallback
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FORMAT
Default number format to apply to ticks, "0.0".
|
Constructor and Description |
---|
NoSelectedDatasetTicksCallback()
Creates the callback using the
DEFAULT_FORMAT . |
NoSelectedDatasetTicksCallback(String stringFormat)
Creates the callback using the argument as number format to apply to ticks.
|
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Returns the number format 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 String DEFAULT_FORMAT
public NoSelectedDatasetTicksCallback()
DEFAULT_FORMAT
.public NoSelectedDatasetTicksCallback(String stringFormat)
stringFormat
- number format to apply, if null
it uses
DEFAULT_FORMAT
public String getFormat()
public String onCallback(Axis axis, double value, int index, List<Double> values)
TickCallback
onCallback
in interface TickCallback
axis
- 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.