Interface SupportBrush<T extends BaseChart<?>>

Type Parameters:
T - Chart type
All Known Implementing Classes:
AreaChart, BarChart, BubbleChart, DotChart, HorizontalBarChart, HorizontalStackedBarChart, LineChart, PopulationPyramidChart, StackedAreaChart, StackedBarChart

public interface SupportBrush<T extends BaseChart<?>>
Charts that implement this interface support the brush feature.
Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if the brush feature is enabled on the chart.
    default T
    setBrushable(boolean enabled)
    Enables/disables the brush feature.
  • Method Details

    • setBrushable

      default T setBrushable(boolean enabled)
      Enables/disables the brush feature. If you enable the brush feature on the chart, the user can zoom in on the chart and a miniature view of the chart is displayed below the chart’s regular-size view. The miniature view allows the user to see which part of the chart is currently zoomed in, and also to rotate the regular-size view left or right. The default setting for the brush feature is disabled.
      Parameters:
      enabled - If true is set, the brush feature is enabled, otherwise it is disabled
      Returns:
      Chart
    • isBrushable

      default boolean isBrushable()
      Checks if the brush feature is enabled on the chart.
      Returns:
      If true, the brush feature is enabled If false, the brush feature is disabled.