Interface ITimeStylePropertyOwner
- All Known Implementing Classes:
GanttChartTimeXAxis,LineChartTimeXAxis
public interface ITimeStylePropertyOwner
Interface of
AxisTimeStyle property owners. Provides a set of methods
corresponding to it.- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAxisTimeStylethat specifies the formatting and ticks details for axis in case it shows calendar time.setLabelsFormat(Function<Double, String> format) Sets the formatter to axis labels, i.e.setTimeStyle(AxisTimeStyle timeLabelsAndTicks) Sets theAxisTimeStylethat specifies the formatting and ticks details for axis in case it shows calendar time.
-
Method Details
-
setTimeStyle
Sets theAxisTimeStylethat specifies the formatting and ticks details for axis in case it shows calendar time. Redraws this axis and it's parent chart.- Parameters:
timeLabelsAndTicks- newAxisTimeStylethat specifies the formatting and ticks details for axis in case it shows calendar time- Returns:
- reference to this object
-
getTimeStyle
AxisTimeStyle getTimeStyle()Returns theAxisTimeStylethat specifies the formatting and ticks details for axis in case it shows calendar time.- Returns:
- this current
AxisTimeStyle
-
setLabelsFormat
Sets the formatter to axis labels, i.e. the function that takes aDoublevalue and produces aStringthat should be drawn to represent this value.- Parameters:
format- new axis labels formatter- Returns:
- reference to this object
-