Class Event

    • Constructor Detail

      • Event

        protected Event()
        Constructor.
    • Method Detail

      • getType

        public abstract EventType getType()
        Returns the event type used to register this event to find handlers of the appropriate class.
        Returns:
        the event type
      • getSource

        public Object getSource()
        Returns the source for this event.
        It should be always a chart instance.
        Returns:
        object representing the source of this event
      • dispatch

        protected abstract void dispatch​(EventHandler handler)
        Implemented by subclasses to dispatch event on the handler.
        Parameters:
        handler - handler instance
      • setSource

        protected void setSource​(Object source)
        Set the source that triggered this event.
        It should be always a chart instance.
        Parameters:
        source - the source of this event.