You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.events.internal.

Class ItemSlicedEvent

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