com.vaadin.flow.component.charts.events.internal.
Class ItemSlicedEvent
- java.lang.Object
-
- com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
-
- com.vaadin.flow.component.charts.events.internal.ItemSlicedEvent
-
All Implemented Interfaces:
public class ItemSlicedEvent extends AbstractSeriesEvent
Event for information about slicing a pie point
Since:
2.0
See Also:
-
-
Constructor Summary
Constructors Constructor Description ItemSlicedEvent(Series series, int index, boolean sliced)
Constructs the event with animated transition, redraws the chart
ItemSlicedEvent(Series series, int index, boolean sliced, boolean redraw)
Constructs the event with animated transition
ItemSlicedEvent(Series series, int index, boolean sliced, boolean redraw, boolean animation)
Constructs the event.
-
Method Summary
All Methods Modifier and Type Method Description int
getIndex()
Returns the index of the point to be sliced
boolean
isAnimation()
Whether or not animation should be used.
boolean
isRedraw()
Whether or not redrawing should be immediate.
boolean
isSliced()
When true, the point is sliced out.
-
Methods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
getSeries
-
-
-
-
Constructor Detail
-
ItemSlicedEvent
public ItemSlicedEvent(Series series, int index, boolean sliced, boolean redraw, boolean animation)
Constructs the event.
Parameters:
index
-sliced
-redraw
-animation
-
-
ItemSlicedEvent
public ItemSlicedEvent(Series series, int index, boolean sliced, boolean redraw)
Constructs the event with animated transition
Parameters:
index
-sliced
-redraw
-
-
ItemSlicedEvent
public ItemSlicedEvent(Series series, int index, boolean sliced)
Constructs the event with animated transition, redraws the chart
Parameters:
index
-sliced
-
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the index of the point to be sliced
Returns:
-
isSliced
public boolean isSliced()
When true, the point is sliced out. When false, the point is set in. When null or undefined, the sliced state is toggled.
Returns:
-
isRedraw
public boolean isRedraw()
Whether or not redrawing should be immediate.
Returns:
true when redrawing needs to be immediate, false otherwise.
-
isAnimation
public boolean isAnimation()
Whether or not animation should be used.
Returns:
true when slicing should be animated, false otherwise.
-
-