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

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

    Modifier and Type
    Method
    Description
    int
    Returns the index of the point to be sliced
    boolean
    Whether or not animation should be used.
    boolean
    Whether or not redrawing should be immediate.
    boolean
    When true, the point is sliced out.

    Methods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent

    getSeries

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 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.