Class ItemSlicedEvent
java.lang.Object
com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
com.vaadin.flow.component.charts.events.internal.ItemSlicedEvent
- All Implemented Interfaces:
Serializable
Event for information about slicing a pie point
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorDescriptionItemSlicedEvent
(Series series, int index, boolean sliced) Constructs the event with animated transition, redraws the chartItemSlicedEvent
(Series series, int index, boolean sliced, boolean redraw) Constructs the event with animated transitionItemSlicedEvent
(Series series, int index, boolean sliced, boolean redraw, boolean animation) Constructs the event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
getSeries
-
Constructor Details
-
ItemSlicedEvent
Constructs the event.- Parameters:
index
-sliced
-redraw
-animation
-
-
ItemSlicedEvent
Constructs the event with animated transition- Parameters:
index
-sliced
-redraw
-
-
ItemSlicedEvent
Constructs the event with animated transition, redraws the chart- Parameters:
index
-sliced
-
-
-
Method Details
-
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.
-