|
|||||||||
| 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(javax.swing.Action action)
Create a new interactor that will activate the given action. |
|
| Method Summary | |
|---|---|
javax.swing.Action |
getAction()
Return the action associated with this interactor. |
void |
mousePressed(LayerEvent layerEvent)
Activate the action referenced by this interactor. |
void |
setAction(javax.swing.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(javax.swing.Action action)
| Method Detail |
|---|
public javax.swing.Action getAction()
public void mousePressed(LayerEvent layerEvent)
mousePressed in interface LayerListenermousePressed in class AbstractInteractorpublic void setAction(javax.swing.Action action)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||