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