Package com.jbstrap.ui.components.charts
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 TypeMethodDescriptiondefault booleanChecks if the zoom feature is enabled on the chart.default TsetZoomable(boolean enabled) Enables/disables the zoom feature.
-
Method Details
-
setZoomable
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 aChartCanvascomponent, this setting applies for all charts within a canvas. The zoom feature is functional until there is at least one chart on theChartCanvasthat has the zoom feature enabled. The default setting for the zoom feature is disabled.- Parameters:
enabled- Iftrueis 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 Iffalse, the zoom feature is disabled.
-