Interface TickCallback
-
- All Known Implementing Classes:
NoSelectedDatasetTicksCallback
public interface TickCallback
Interface to implement if wants to change the tick marks to include information about the data type, for axes which are showing data as numbers.
It can return aList
of strings (for multiple lines).- Author:
- Andrea "Stock" Stocchero
- See Also:
CartesianLinearAxis
,CartesianLogarithmicAxis
,RadialAxis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
onCallback(Axis axis, double value, int index, List<Double> values)
Changes the tick marks to include information about the data type.
-
-
-
Method Detail
-
onCallback
Object onCallback(Axis axis, double value, int index, List<Double> values)
Changes the tick marks to include information about the data type.- Parameters:
axis
- axis instance where this callback as been definedvalue
- value of tickindex
- index of tickvalues
- list of all tick values- Returns:
- the tick to apply or if the callback returns
null
the associated grid line will be hidden.
It can return aList
of strings (for multiple lines) or a string (for single line).
-
-