Class KeyboardNavigation

    • Constructor Detail

      • KeyboardNavigation

        public KeyboardNavigation()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns whether to enable keyboard navigation for the chart.

        Default: true

      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether to enable keyboard navigation for the chart.

        Default: true

      • getFocusBorder

        public FocusBorder getFocusBorder()
        Returns an options for the focus border drawn around elements while navigating through them, or create a new one.

        Default: an instance of FocusBorder

      • setFocusBorder

        public void setFocusBorder​(FocusBorder focusBorder)
        Sets an options for the focus border drawn around elements while navigating through them, or create a new one.
      • getOrder

        public List<String> getOrder()
        Returns the order of tab navigation in the chart. Determines which elements are tabbed to first.

        Available elements are: series, zoom, rangeSelector, chartMenu, legend and container. In addition, any custom components can be added here. Adding container first in order will make the keyboard focus stop on the chart container first, requiring the user to tab again to enter the chart.

        Default: null

      • setOrder

        public void setOrder​(List<String> order)
        Sets the order of tab navigation in the chart. Determines which elements are tabbed to first.

        Available elements are: series, zoom, rangeSelector, chartMenu, legend and container. In addition, any custom components can be added here. Adding container first in order will make the keyboard focus stop on the chart container first, requiring the user to tab again to enter the chart.

      • getSeriesNavigation

        public SeriesNavigation getSeriesNavigation()
        Returns an options for the keyboard navigation of data points and series, or create a new one.

        Default: an instance of SeriesNavigation

      • setSeriesNavigation

        public void setSeriesNavigation​(SeriesNavigation seriesNavigation)
        Sets an options for the keyboard navigation of data points and series, or create a new one.
      • isWrapAround

        public boolean isWrapAround()
        Return whether or not to wrap around when reaching the end of arrow-key navigation for an element in the chart.

        Default: true

      • setWrapAround

        public void setWrapAround​(boolean wrapAround)
        Sets whether or not to wrap around when reaching the end of arrow-key navigation for an element in the chart.