public class ActionInteractor extends AbstractInteractor
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.Action |
_action |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public ActionInteractor()
public ActionInteractor(javax.swing.Action action)
public javax.swing.Action getAction()
public void mousePressed(LayerEvent layerEvent)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
public void setAction(javax.swing.Action action)