public class ActionInteractor extends AbstractInteractor
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public ActionInteractor()
public ActionInteractor(Action action)
public Action getAction()
public void mousePressed(LayerEvent layerEvent)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
public void setAction(Action action)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.