Package org.zkoss.chart
Class TimeOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.TimeOptions
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class TimeOptions extends Optionable
Time options can apply globally or to individual charts. The time options were removed from theGlobalobject to theTimeOptionsobject since v6.0.5.- Since:
- 12.5.0.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 TimeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTimezone()Returns the named time zone.voidsetTimezone(String timezone)Sets the named time zone.-
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
-
getTimezone
public String getTimezone()
Returns the named time zone. Defaults to UTC.- Since:
- 12.5.0.0
-
setTimezone
public void setTimezone(String timezone)
Sets the named time zone.Supported time zone names rely on browser implementations. If the given time zone is not recognized, Highcharts warns and falls back to a 0 offset, corresponding to UTC.
- Parameters:
timezone- a named time zone- Since:
- 12.5.0.0
-
-