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, setMouseFilterpublic CompositeInteractor()
public boolean accept(LayerEvent e)
accept in interface Interactoraccept in class AbstractInteractorpublic void addInteractor(Interactor i)
public Iterator interactors()
public boolean isMotionEnabled()
isMotionEnabled in interface InteractorisMotionEnabled in class AbstractInteractorpublic void mouseDragged(LayerEvent event)
mouseDragged in interface LayerListenermouseDragged in class AbstractInteractorpublic void mouseEntered(LayerEvent event)
mouseEntered in interface LayerMotionListenermouseEntered in class AbstractInteractorpublic void mouseExited(LayerEvent event)
mouseExited in interface LayerMotionListenermouseExited in class AbstractInteractorpublic void mouseMoved(LayerEvent event)
mouseMoved in interface LayerMotionListenermouseMoved in class AbstractInteractorpublic void mousePressed(LayerEvent event)
mousePressed in interface LayerListenermousePressed in class AbstractInteractorpublic void mouseReleased(LayerEvent event)
mouseReleased in interface LayerListenermouseReleased in class AbstractInteractorpublic void removeInteractor(Interactor i)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.