Class RemoveHandlerEvent


  • public final class RemoveHandlerEvent
    extends Event
    Event which is fired when new event handler has been removed 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

      • RemoveHandlerEvent

        public RemoveHandlerEvent​(EventType handlerType)
        Creates the event with the type of removed handler.
        Parameters:
        handlerType - the type of removed 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