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.
|
java.util.Iterator |
interactors()
Return an interactor 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
e
- The eventpublic void addInteractor(Interactor i)
public java.util.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
event
- The eventpublic void mouseEntered(LayerEvent event)
mouseEntered
in interface LayerMotionListener
mouseEntered
in class AbstractInteractor
event
- The eventpublic void mouseExited(LayerEvent event)
mouseExited
in interface LayerMotionListener
mouseExited
in class AbstractInteractor
event
- The eventpublic void mouseMoved(LayerEvent event)
mouseMoved
in interface LayerMotionListener
mouseMoved
in class AbstractInteractor
event
- The eventpublic void mousePressed(LayerEvent event)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
event
- The eventpublic void mouseReleased(LayerEvent event)
mouseReleased
in interface LayerListener
mouseReleased
in class AbstractInteractor
event
- The eventpublic void removeInteractor(Interactor i)