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: '%H:%M:%S.%L',
     second: '%H:%M:%S',
     minute: '%H:%M',
     hour: '%H:%M',
     day: '%e. %b',
     week: '%e. %b',
     month: '%b \'%y',
     year: '%Y'
     
     

    All the options in this class support DynamicalAttribute.

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

      • DateTimeLabelFormats

        public DateTimeLabelFormats()
    • Method Detail

      • getDay

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

        Default: %e. %b

      • setDay

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

        Default: %e. %b

      • getHour

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

        Default: %H:%M

      • setHour

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

        Default: %H:%M

      • getMillisecond

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

        Default: %H:%M:%S.%L

      • setMillisecond

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

        Default: %H:%M:%S.%L

      • getMinute

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

        Default: %H:%M

      • setMinute

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

        Default: %H:%M

      • getMonth

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

        Default: %b \'%y

      • setMonth

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

        Default: %b \'%y

      • getSecond

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

        Default: %H:%M:%S

      • setSecond

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

        Default: %H:%M:%S

      • getWeek

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

        Default: %e. %b

      • setWeek

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

        Default: %e. %b

      • getYear

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

        Default: %Y

      • setYear

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

        Default: %Y