Class DisplayFormats


  • public final class DisplayFormats
    extends AbstractModel<Time,​NoDefaults>
    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 or null if unit is not consistent