public abstract class Event extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Event()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
Object |
getSource()
Returns the source for this event.
It should be always a chart instance. |
abstract EventType |
getType()
Returns the event type used to register this event to find handlers of the appropriate class.
|
protected void |
setSource(Object source)
Set the source that triggered this event.
It should be always a chart instance. |
public abstract EventType getType()
public Object getSource()
protected abstract void dispatch(EventHandler handler)
handler - handler instanceprotected void setSource(Object source)
source - the source of this event.