public abstract class AbstractInteractor extends Object implements Interactor
| Constructor and Description |
|---|
AbstractInteractor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(LayerEvent event)
Test if the interactor accepts the given 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 |
mouseClicked(LayerEvent layerEvent)
Do nothing.
|
void |
mouseDragged(LayerEvent layerEvent)
Do nothing.
|
void |
mouseEntered(LayerEvent layerEvent)
Do nothing.
|
void |
mouseExited(LayerEvent layerEvent)
Do nothing.
|
void |
mouseMoved(LayerEvent layerEvent)
Do nothing.
|
void |
mousePressed(LayerEvent layerEvent)
Do nothing.
|
void |
mouseReleased(LayerEvent layerEvent)
Do nothing.
|
void |
setConsuming(boolean flag)
Set the consuming flag of this layer.
|
void |
setEnabled(boolean flag)
Set the enabled flag of this interactor.
|
protected void |
setMotionEnabled(boolean flag)
Set the motion enabled flag of this interactor.
|
void |
setMouseFilter(MouseFilter filter)
Set the mouse filter of this interactor.
|
public boolean accept(LayerEvent event)
accept in interface Interactorpublic MouseFilter getMouseFilter()
getMouseFilter in interface Interactorpublic boolean isConsuming()
isConsuming in interface Interactorpublic boolean isEnabled()
isEnabled in interface Interactorpublic boolean isMotionEnabled()
isMotionEnabled in interface Interactorpublic void mouseDragged(LayerEvent layerEvent)
mouseDragged in interface LayerListenerpublic void mouseEntered(LayerEvent layerEvent)
mouseEntered in interface LayerMotionListenerpublic void mouseExited(LayerEvent layerEvent)
mouseExited in interface LayerMotionListenerpublic void mouseMoved(LayerEvent layerEvent)
mouseMoved in interface LayerMotionListenerpublic void mousePressed(LayerEvent layerEvent)
mousePressed in interface LayerListenerpublic void mouseReleased(LayerEvent layerEvent)
mouseReleased in interface LayerListenerpublic void mouseClicked(LayerEvent layerEvent)
mouseClicked in interface LayerListenerpublic void setConsuming(boolean flag)
public void setEnabled(boolean flag)
setEnabled in interface Interactorprotected void setMotionEnabled(boolean flag)
public void setMouseFilter(MouseFilter filter)
setMouseFilter in interface InteractorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.