Class AddHandlerEvent


  • public final class AddHandlerEvent
    extends Event
    Event which is fired when new event handler has been added to the chart.
    This event should use only for use internal only to manage internally all handlers.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

      • TYPE

        public static final EventType TYPE
        Event type
    • Constructor Detail

      • AddHandlerEvent

        public AddHandlerEvent​(EventType handlerType)
        Creates the event with the type of new handler.
        Parameters:
        handlerType - the type of new handler.
    • Method Detail

      • getType

        public 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
      • 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
      • isRecognize

        public final boolean isRecognize​(EventType type)
        Returns true if the type of event handler is equals to the event handler type provided as argument, otherwise false.
        Parameters:
        type - the event handler type to use checking if equals to the type of event handler of event
        Returns:
        true if the type of event handler is equals to the event handler type provided as argument, otherwise false