Package org.zkoss.chart
Class Responsive.Condition
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Responsive.Condition
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
- Enclosing class:
- Responsive
public static class Responsive.Condition extends Optionable
Under which conditions the rule applies.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.json.JavaScriptValue
getCallback()
Returns a callback function to gain complete control on when the responsive rule applies.Number
getMaxHeight()
Returns the value the responsive rule applies if the chart height is less than this.Number
getMaxWidth()
Returns the value the responsive rule applies if the chart width is less than this.Number
getMinHeight()
Returns the value the responsive rule applies if the chart height is greater than this.Number
getMinWidth()
Returns the value the responsive rule applies if the chart width is greater than this.void
setCallback(org.zkoss.json.JavaScriptValue callback)
Sets a callback function to gain complete control on when the responsive rule applies.void
setMaxHeight(Number maxHeight)
Sets the value the responsive rule applies if the chart height is less than this.void
setMaxWidth(Number maxWidth)
Sets the value the responsive rule applies if the chart width is less than this.void
setMinHeight(Number minHeight)
Sets the value the responsive rule applies if the chart height is greater than this.void
setMinWidth(Number minWidth)
Sets the value the responsive rule applies if the chart width is greater than this.-
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
-
getCallback
public org.zkoss.json.JavaScriptValue getCallback()
Returns a callback function to gain complete control on when the responsive rule applies. Return true if it applies. This opens for checking against other metrics than the chart size, for example the document size or other elements. Context: Highcharts.ChartDefault: null
-
setCallback
public void setCallback(org.zkoss.json.JavaScriptValue callback)
Sets a callback function to gain complete control on when the responsive rule applies. Return true if it applies. This opens for checking against other metrics than the chart size, for example the document size or other elements. Context: Highcharts.Chart
-
getMaxHeight
public Number getMaxHeight()
Returns the value the responsive rule applies if the chart height is less than this.Default: null
-
setMaxHeight
public void setMaxHeight(Number maxHeight)
Sets the value the responsive rule applies if the chart height is less than this.
-
getMaxWidth
public Number getMaxWidth()
Returns the value the responsive rule applies if the chart width is less than this.Default: null
-
setMaxWidth
public void setMaxWidth(Number maxWidth)
Sets the value the responsive rule applies if the chart width is less than this.
-
getMinHeight
public Number getMinHeight()
Returns the value the responsive rule applies if the chart height is greater than this.Default: 0
-
setMinHeight
public void setMinHeight(Number minHeight)
Sets the value the responsive rule applies if the chart height is greater than this.
-
getMinWidth
public Number getMinWidth()
Returns the value the responsive rule applies if the chart width is greater than this.Default: 0
-
setMinWidth
public void setMinWidth(Number minWidth)
Sets the value the responsive rule applies if the chart width is greater than this.
-
-