Class DisplayFormats


  • public class DisplayFormats
    extends Object
    The display formats are used to configure how different time units are formed in the strings for the axis tick marks.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • setDisplayFormat

        public void setDisplayFormat​(TimeUnit unit,
                                     String format)
        Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
        Parameters:
        unit - time unit.
        format - display format
      • getDisplayFormat

        public String getDisplayFormat​(TimeUnit unit)
        Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
        Parameters:
        unit - time unit.
        Returns:
        display format
      • getAxis

        public final Axis getAxis()
        Returns the axis instance.
        Returns:
        the axis