Class DateTimeLabelFormats

  • All Implemented Interfaces:
    Serializable, OptionDataListener, org.zkoss.json.JSONAware

    public class DateTimeLabelFormats
    extends Optionable
    For a datetime axis, the scale will automatically adjust to the appropriate unit. This member gives the default string representations used for each unit. For an overview of the replacement codes, see dateFormat. Defaults to:
     
     millisecond: '%[HMSL]',
     second: '%[HMS]',
     minute: '%[HM]',
     hour: '%[HM]',
     day: {main: '%[eb]', boundary: '%[eb]'},
     week: '%[eb]',
     month: '%[bY]',
     year: '%[Y]'
     
     

    Each unit can also be set as a DateTimeLabelFormat object, for example to format boundary ticks such as the start of a day or a year.

    All the options in this class support DynamicalAttribute.

    Author:
    jumperchen, RaymondChao
    See Also:
    Serialized Form
    • Constructor Detail

      • DateTimeLabelFormats

        public DateTimeLabelFormats()
    • Method Detail

      • getDay

        public Object getDay()
        Returns the label format for day.

        Default: null

      • setDay

        public void setDay​(String day)
        Sets the label format for day.

        Default: null

      • getHour

        public Object getHour()
        Returns the label format for hour.

        Default: null

      • setHour

        public void setHour​(String hour)
        Sets the label format for hour.

        Default: null

      • getMillisecond

        public Object getMillisecond()
        Returns the label format for millisecond.

        Default: null

      • setMillisecond

        public void setMillisecond​(String millisecond)
        Sets the label format for millisecond.

        Default: null

      • getMinute

        public Object getMinute()
        Returns the label format for minute.

        Default: null

      • setMinute

        public void setMinute​(String minute)
        Sets the label format for minute.

        Default: null

      • getMonth

        public Object getMonth()
        Returns the label format for month.

        Default: null

      • setMonth

        public void setMonth​(String month)
        Sets the label format for month.

        Default: null

      • getSecond

        public Object getSecond()
        Returns the label format for second.

        Default: null

      • setSecond

        public void setSecond​(String second)
        Sets the label format for second.

        Default: null

      • getWeek

        public Object getWeek()
        Returns the label format for week.

        Default: null

      • setWeek

        public void setWeek​(String week)
        Sets the label format for week.

        Default: null

      • getYear

        public Object getYear()
        Returns the label format for year.

        Default: null

      • setYear

        public void setYear​(String year)
        Sets the label format for year.

        Default: null