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: '%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
-
-
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 String
getDay()
Returns the label format for day.String
getHour()
Returns the label format for hour.String
getMillisecond()
Returns the label format for millisecond.String
getMinute()
Returns the label format for minute.String
getMonth()
Returns the label format for month.String
getSecond()
Returns the label format for second.String
getWeek()
Returns the label format for week.String
getYear()
Returns the label format for year.void
setDay(String day)
Sets the label format for day.void
setHour(String hour)
Sets the label format for hour.void
setMillisecond(String millisecond)
Sets the label format for millisecond.void
setMinute(String minute)
Sets the label format for minute.void
setMonth(String month)
Sets the label format for month.void
setSecond(String second)
Sets the label format for second.void
setWeek(String week)
Sets the label format for week.void
setYear(String year)
Sets the label format for year.-
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 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
-
-