Class 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
    • Constructor Detail

      • Responsive

        public Responsive()
    • 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.