public abstract class Handler
extends java.lang.Object
| Constructor and Description |
|---|
Handler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHandler(
Add a Handler to a visualization.
|
protected abstract void |
onEvent(Properties properties)
This method should be overridden by event-specific Handler subclasses.
|
public static void addHandler(viz, java.lang.String eventName, Handler handler)
viz - a Visualization supporting the given event.eventName - The name of the event.handler - A Handler to add.protected abstract void onEvent(Properties properties)
throws TypeException
properties - The JavaScriptObject containing data about the event.TypeException - If some property of the event has an unexpected type.