Class AbstractEvent

    • Constructor Detail

      • AbstractEvent

        protected AbstractEvent​(BaseNativeEvent nativeEvent,
                                EventType type)
        Creates an event using a native event
        Parameters:
        nativeEvent - native event of this custom event
        type - type of event
    • Method Detail

      • getType

        public final EventType getType()
        Description copied from class: Event
        Returns the event type used to register this event to find handlers of the appropriate class.
        Specified by:
        getType in class Event
        Returns:
        the event type
      • getNativeEvent

        public final BaseNativeEvent getNativeEvent()
        Returns the native event instance.
        Returns:
        the nativeEvent
      • getChart

        public IsChart getChart()
        Returns the chart instance, stored in the event as source.
        Returns:
        the chart instance