|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An object that encapsulate the interaction that a figure plays in an interactive application. Typically, all objects of a certain type (nodes in a graph viewer, for example) all have the same interactor given to them, so that they behave the same. Each interactor is thus attached to one or more figures in a canvas. When a mouse event occurs on the figure canvas, the event dispatch code in the figure canvas searches for the top-most figure underneath the mouse, and then searches up the tree of figures looking for an interactor that can handle that event.
| Method Summary | |
boolean |
accept(LayerEvent event)
Test is the interactor is prepared to accept this event. |
MouseFilter |
getMouseFilter()
Get the mouse filter used by this interactor to decide whether to accept an event. |
boolean |
isConsuming()
Test the consuming flag of this interactor. |
boolean |
isEnabled()
Test the enabled flag of this interactor. |
boolean |
isMotionEnabled()
Test the motion enabled flag of this interactor. |
void |
setEnabled(boolean flag)
Set the enabled flag of this interactor. |
void |
setMouseFilter(MouseFilter filter)
Set the mouse filter of this interactor. |
| Methods inherited from interface diva.canvas.event.LayerListener |
mouseClicked, mouseDragged, mousePressed, mouseReleased |
| Methods inherited from interface diva.canvas.event.LayerMotionListener |
mouseEntered, mouseExited, mouseMoved |
| Method Detail |
public boolean accept(LayerEvent event)
public MouseFilter getMouseFilter()
public boolean isConsuming()
public boolean isEnabled()
public boolean isMotionEnabled()
public void setEnabled(boolean flag)
public void setMouseFilter(MouseFilter filter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||