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 Details

    • setTimeStyle

      ITimeStylePropertyOwner setTimeStyle(AxisTimeStyle timeLabelsAndTicks)
      Sets the AxisTimeStyle that specifies the formatting and ticks details for axis in case it shows calendar time. Redraws this axis and it's parent chart.
      Parameters:
      timeLabelsAndTicks - new AxisTimeStyle that specifies the formatting and ticks details for axis in case it shows calendar time
      Returns:
      reference to this object
    • getTimeStyle

      AxisTimeStyle getTimeStyle()
      Returns the AxisTimeStyle that specifies the formatting and ticks details for axis in case it shows calendar time.
      Returns:
      this current AxisTimeStyle
    • setLabelsFormat

      ITimeStylePropertyOwner setLabelsFormat(Function<Double,String> format)
      Sets the formatter to axis labels, i.e. the function that takes a Double value and produces a String that should be drawn to represent this value.
      Parameters:
      format - new axis labels formatter
      Returns:
      reference to this object