|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.canvas.interactor.AbstractInteractor
diva.canvas.interactor.CompositeInteractor
public class CompositeInteractor
An interactor that forwards events to other interactors.
| Field Summary | |
|---|---|
private Interactor |
_currentInteractor
The current interactor |
private java.util.ArrayList<Interactor> |
_interactors
The list of attached interactors |
| Constructor Summary | |
|---|---|
CompositeInteractor()
Create a new composite interactor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class diva.canvas.interactor.AbstractInteractor |
|---|
getMouseFilter, isConsuming, isEnabled, mouseClicked, setConsuming, setEnabled, setMotionEnabled, setMouseFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<Interactor> _interactors
private Interactor _currentInteractor
| Constructor Detail |
|---|
public CompositeInteractor()
| Method Detail |
|---|
public boolean accept(LayerEvent e)
accept in interface Interactoraccept in class AbstractInteractorpublic void addInteractor(Interactor i)
public java.util.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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||