Class DefaultChartTime

  • All Implemented Interfaces:
    IsDefaultTime

    public final class DefaultChartTime
    extends Object
    implements IsDefaultTime
    Defaults for time option element, based on chart type.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getIsoWeekday

        public IsoWeekDay getIsoWeekday()
        Description copied from interface: IsDefaultTime
        Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.
        Specified by:
        getIsoWeekday in interface IsDefaultTime
        Returns:
        ISO day of the week with 0 being Sunday and 6 being Saturday
      • getRound

        public TimeUnit getRound()
        Description copied from interface: IsDefaultTime
        If defined, dates will be rounded to the start of this unit.
        Specified by:
        getRound in interface IsDefaultTime
        Returns:
        If defined, dates will be rounded to the start of this unit.
      • getTooltipFormat

        public String getTooltipFormat()
        Description copied from interface: IsDefaultTime
        The date format string to use for the tooltip.
        Specified by:
        getTooltipFormat in interface IsDefaultTime
        Returns:
        date format string to use for the tooltip.
      • getUnit

        public TimeUnit getUnit()
        Description copied from interface: IsDefaultTime
        If defined, will force the unit to be a certain type.
        Specified by:
        getUnit in interface IsDefaultTime
        Returns:
        If defined, will force the unit to be a certain type.
      • getMinUnit

        public TimeUnit getMinUnit()
        Description copied from interface: IsDefaultTime
        The minimum display format to be used for a time unit.
        Specified by:
        getMinUnit in interface IsDefaultTime
        Returns:
        The minimum display format to be used for a time unit.
      • getParser

        public String getParser()
        Description copied from interface: IsDefaultTime
        Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
        Specified by:
        getParser in interface IsDefaultTime
        Returns:
        Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.