Package org.zkoss.chart
Class DateTimeLabelFormat
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.DateTimeLabelFormat
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class DateTimeLabelFormat extends Optionable
The label format of one time unit inDateTimeLabelFormats, in the object form. Besides the main format, it can set the format for boundary ticks and a list of formats for grid axes.All the options in this class support
DynamicalAttribute.- Since:
- 13.1.1.0
- Author:
- peggypeng
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description DateTimeLabelFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBoundary()Returns the label format used when a tick is a boundary tick, for example the start of a day or a year.List<String>getList()Returns the list of possible formats for this unit.StringgetMain()Returns the main label format for this unit.voidsetBoundary(String boundary)Sets the label format used when a tick is a boundary tick, for example the start of a day or a year.voidsetList(String... list)Sets the list of possible formats for this unit.voidsetList(List<String> list)Sets the list of possible formats for this unit.voidsetMain(String main)Sets the main label format for this unit.-
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
-
getBoundary
public String getBoundary()
Returns the label format used when a tick is a boundary tick, for example the start of a day or a year. Only the hour, day, month and year units have a boundary format.Default: null
-
setBoundary
public void setBoundary(String boundary)
Sets the label format used when a tick is a boundary tick, for example the start of a day or a year. Only the hour, day, month and year units have a boundary format.
-
getList
public List<String> getList()
Returns the list of possible formats for this unit. Grid axes pick one of them depending on the available space.Default: null
-
setList
public void setList(List<String> list)
Sets the list of possible formats for this unit. Grid axes pick one of them depending on the available space.
-
setList
public void setList(String... list)
Sets the list of possible formats for this unit. Grid axes pick one of them depending on the available space.
-
getMain
public String getMain()
Returns the main label format for this unit.Default: null
-
setMain
public void setMain(String main)
Sets the main label format for this unit.
-
-