Package org.zkoss.chart
Class Responsive
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Responsive
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Responsive extends Optionable
Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options. The rules are executed from the top down.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Responsive.Condition
Under which conditions the rule applies.static class
Responsive.Rule
A rule for responsive settings.
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Responsive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRule(Responsive.Rule rule)
Adds the rule at the end of the rules list.Responsive.Rule
getRule()
Returns a rule for responsive settings at the index 0, if any.Responsive.Rule
getRule(int index)
Returns a rule for responsive settings from the given index, if any.int
getRuleSize()
Returns the size of the rules list.-
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
-
getRule
public Responsive.Rule getRule()
Returns a rule for responsive settings at the index 0, if any. Otherwise, create a new one.
-
getRule
public Responsive.Rule getRule(int index)
Returns a rule for responsive settings from the given index, if any. Otherwise, create a new one.
-
addRule
public void addRule(Responsive.Rule rule)
Adds the rule at the end of the rules list.
-
getRuleSize
public int getRuleSize()
Returns the size of the rules list.
-
-