Package org.zkoss.chart
Class LegendAccessibility
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.LegendAccessibility
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class LegendAccessibility extends Optionable
Options for configuring accessibility for the legend of the chart.Requires the accessibility module to be loaded. For example,
Library.setProperty("org.zkoss.chart.modules.accessibility", "true");- Since:
- 10.2.1.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description LegendAccessibility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegendKeyboardNavigationgetKeyboardNavigation()Returns options for keyboard navigation for the legend, or create new one.booleanisEnabled()Returns whether to enable accessibility support for the legend.voidsetEnabled(boolean enabled)Sets whether to enable accessibility support for the legend.voidsetKeyboardNavigation(LegendKeyboardNavigation keyboardNavigation)Sets options for keyboard navigation for the legend.-
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
-
isEnabled
public boolean isEnabled()
Returns whether to enable accessibility support for the legend.Default:
true
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether to enable accessibility support for the legend.Default:
true
-
getKeyboardNavigation
public LegendKeyboardNavigation getKeyboardNavigation()
Returns options for keyboard navigation for the legend, or create new one.Default: an instance of
LegendKeyboardNavigation
-
setKeyboardNavigation
public void setKeyboardNavigation(LegendKeyboardNavigation keyboardNavigation)
Sets options for keyboard navigation for the legend.
-
-