Class DatasetRangeSelectionEvent


  • public final class DatasetRangeSelectionEvent
    extends AbstractEvent
    Event which is fired when the user selects an area on the chart, by DatasetsItemsSelector.ID plugin.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

      • TYPE

        public static final EventType TYPE
        Event type
    • Constructor Detail

      • DatasetRangeSelectionEvent

        public DatasetRangeSelectionEvent​(BaseNativeEvent nativeEvent,
                                          ScaleValueItem from,
                                          ScaleValueItem to)
        Creates the event with start and end values of selected scale
        Parameters:
        nativeEvent - native event of this custom event
        from - starting value of selected scale
        to - ending value of selected scale
    • Method Detail

      • getFrom

        public ScaleValueItem getFrom()
        Returns the starting value of selected scale.
        Returns:
        the starting value of selected scale
      • getTo

        public ScaleValueItem getTo()
        Returns the ending value of selected scale.
        Returns:
        the ending value of selected scale
      • dispatch

        protected void dispatch​(EventHandler handler)
        Description copied from class: Event
        Implemented by subclasses to dispatch event on the handler.
        Specified by:
        dispatch in class Event
        Parameters:
        handler - handler instance