Interface SupportZoom<T extends BaseChart<?>>

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

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

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

    • setZoomable

      default T setZoomable(boolean enabled)
      Enables/disables the zoom feature. Enabling the zoom feature allows the user to zoom in on a specific detail of the chart. If you add the chart to a ChartCanvas component, this setting applies for all charts within a canvas. The zoom feature is functional until there is at least one chart on the ChartCanvas that has the zoom feature enabled. The default setting for the zoom feature is disabled.
      Parameters:
      enabled - If true is set, the zoom feature is enabled, otherwise it is disabled
      Returns:
      Chart
    • isZoomable

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