|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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 Interactor
accept
in class AbstractInteractor
public 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
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |