|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.interactor.AbstractInteractor
diva.canvas.interactor.ActionInteractor
public class ActionInteractor
An interactor that fires an Action when a mouse pressed event occurs.
Constructor Summary | |
---|---|
ActionInteractor()
Create a new interactor that will throw a NullPointerException when a mouse button is pressed. |
|
ActionInteractor(Action action)
Create a new interactor that will activate the given action. |
Method Summary | |
---|---|
Action |
getAction()
Return the action associated with this interactor. |
void |
mousePressed(LayerEvent layerEvent)
Activate the action referenced by this interactor. |
void |
setAction(Action action)
Set the action associated with this interactor. |
Methods inherited from class diva.canvas.interactor.AbstractInteractor |
---|
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionInteractor()
public ActionInteractor(Action action)
Method Detail |
---|
public Action getAction()
public void mousePressed(LayerEvent layerEvent)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
public void setAction(Action action)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |