Package org.zkoss.chart
Class DateTimeLabelFormats
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.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
DateTimeLabelFormatobject, 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
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description DateTimeLabelFormats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDay()Returns the label format for day.ObjectgetHour()Returns the label format for hour.ObjectgetMillisecond()Returns the label format for millisecond.ObjectgetMinute()Returns the label format for minute.ObjectgetMonth()Returns the label format for month.ObjectgetSecond()Returns the label format for second.ObjectgetWeek()Returns the label format for week.ObjectgetYear()Returns the label format for year.voidsetDay(String day)Sets the label format for day.voidsetDay(DateTimeLabelFormat day)Sets the label format for day as aDateTimeLabelFormatobject.voidsetHour(String hour)Sets the label format for hour.voidsetHour(DateTimeLabelFormat hour)Sets the label format for hour as aDateTimeLabelFormatobject.voidsetMillisecond(String millisecond)Sets the label format for millisecond.voidsetMillisecond(DateTimeLabelFormat millisecond)Sets the label format for millisecond as aDateTimeLabelFormatobject.voidsetMinute(String minute)Sets the label format for minute.voidsetMinute(DateTimeLabelFormat minute)Sets the label format for minute as aDateTimeLabelFormatobject.voidsetMonth(String month)Sets the label format for month.voidsetMonth(DateTimeLabelFormat month)Sets the label format for month as aDateTimeLabelFormatobject.voidsetSecond(String second)Sets the label format for second.voidsetSecond(DateTimeLabelFormat second)Sets the label format for second as aDateTimeLabelFormatobject.voidsetWeek(String week)Sets the label format for week.voidsetWeek(DateTimeLabelFormat week)Sets the label format for week as aDateTimeLabelFormatobject.voidsetYear(String year)Sets the label format for year.voidsetYear(DateTimeLabelFormat year)Sets the label format for year as aDateTimeLabelFormatobject.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
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
-
setDay
public void setDay(DateTimeLabelFormat day)
Sets the label format for day as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setHour
public void setHour(DateTimeLabelFormat hour)
Sets the label format for hour as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setMillisecond
public void setMillisecond(DateTimeLabelFormat millisecond)
Sets the label format for millisecond as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setMinute
public void setMinute(DateTimeLabelFormat minute)
Sets the label format for minute as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setMonth
public void setMonth(DateTimeLabelFormat month)
Sets the label format for month as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setSecond
public void setSecond(DateTimeLabelFormat second)
Sets the label format for second as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setWeek
public void setWeek(DateTimeLabelFormat week)
Sets the label format for week as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
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
-
setYear
public void setYear(DateTimeLabelFormat year)
Sets the label format for year as aDateTimeLabelFormatobject.- Since:
- 13.1.1.0
-
-