|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ZEventHandler is an interface for defining behaviors in Jazz.
It is really just a utility to make it easier to group sets of
event handlers that work together to define a behavior. This defines
event listeners for mouse events so that a sub-class can over-ride the
ones it wants to define. Then, the entire set of handlers can be temporarily
turned on or off with calls to setActive
.
The event handler is associated with a specific node in the Jazz scenegraph. If it is attached to the root node, then it will respond to events on all nodes (if the events weren't handled by an event handler on a lower node). If it is attached to any other node, then it will respond only to events on nodes that are in the sub-tree rooted at the event handler node.
This functionality is specifically designed for mode-driven applications so that one mode might draw while another follows hyperlinks. One event handler can be defined for each mode, and then they just need to be activated and deactivated as needed.
Method Summary | |
boolean |
isActive()
Determines if this event handler is active. |
void |
setActive(boolean active)
Specifies whether this event handler is active or not. |
Method Detail |
public void setActive(boolean active)
active
- True to make this event handler activepublic boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |