public class CompositeInteractor extends AbstractInteractor
Constructor and Description |
---|
CompositeInteractor()
Create a new composite interactor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(LayerEvent e)
Accept an event if any attached interactor will accept it.
|
void |
addInteractor(Interactor i)
Add an interactor to this interactor.
|
Iterator |
interactors()
Return an iteractor over the attached interactors.
|
boolean |
isMotionEnabled()
Return true if any contained interactor is motion enabled.
|
void |
mouseDragged(LayerEvent event)
Handle a mouse drag event.
|
void |
mouseEntered(LayerEvent event)
Handle a mouse entered event.
|
void |
mouseExited(LayerEvent event)
Handle a mouse exited event.
|
void |
mouseMoved(LayerEvent event)
Handle a mouse moved event.
|
void |
mousePressed(LayerEvent event)
Handle a mouse press event.
|
void |
mouseReleased(LayerEvent event)
Handle a mouse released event.
|
void |
removeInteractor(Interactor i)
Remove the given interactor from this interactor.
|
getMouseFilter, isConsuming, isEnabled, mouseClicked, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public CompositeInteractor()
public boolean accept(LayerEvent e)
accept
in interface Interactor
accept
in class AbstractInteractor
public void addInteractor(Interactor i)
public Iterator interactors()
public boolean isMotionEnabled()
isMotionEnabled
in interface Interactor
isMotionEnabled
in class AbstractInteractor
public void mouseDragged(LayerEvent event)
mouseDragged
in interface LayerListener
mouseDragged
in class AbstractInteractor
public void mouseEntered(LayerEvent event)
mouseEntered
in interface LayerMotionListener
mouseEntered
in class AbstractInteractor
public void mouseExited(LayerEvent event)
mouseExited
in interface LayerMotionListener
mouseExited
in class AbstractInteractor
public void mouseMoved(LayerEvent event)
mouseMoved
in interface LayerMotionListener
mouseMoved
in class AbstractInteractor
public void mousePressed(LayerEvent event)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
public void mouseReleased(LayerEvent event)
mouseReleased
in interface LayerListener
mouseReleased
in class AbstractInteractor
public void removeInteractor(Interactor i)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.