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 boolean
Checks if the zoom feature is enabled on the chart.default T
setZoomable
(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 aChartCanvas
component, this setting applies for all charts within a canvas. The zoom feature is functional until there is at least one chart on theChartCanvas
that has the zoom feature enabled. The default setting for the zoom feature is disabled.- Parameters:
enabled
- Iftrue
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 Iffalse
, the zoom feature is disabled.
-