public class EventLayer extends CanvasLayer implements EventAcceptor
Sample uses of the event layer
Constructor and Description |
---|
EventLayer() |
Modifier and Type | Method and Description |
---|---|
void |
addInteractor(Interactor i)
Add an interactor to this interactor.
|
void |
addLayerListener(LayerListener l)
Add the given layer listener to this dispatcher.
|
void |
addLayerMotionListener(LayerMotionListener l)
Add the given layer motion listener to this dispatcher.
|
void |
dispatchEvent(java.awt.AWTEvent event)
Dispatch an AWT event on this layer.
|
java.util.Iterator |
interactors()
Return an interactor over the attached interactors.
|
boolean |
isConsuming()
Test the consuming flag of this layer.
|
boolean |
isEnabled()
Test the enabled flag of this layer.
|
protected void |
processLayerEvent(LayerEvent event)
Process a layer event.
|
void |
removeInteractor(Interactor i)
Remove the given interactor from this interactor.
|
void |
removeLayerListener(LayerListener l)
Remove the given layer listener from this dispatcher.
|
void |
removeLayerMotionListener(LayerMotionListener l)
Remove the given layer motion listener from this dispatcher.
|
void |
setConsuming(boolean flag)
Set the consuming flag of this layer.
|
void |
setEnabled(boolean flag)
Set the enabled flag of this layer.
|
getCanvasPane, getLayerBounds, getParent, getToolTipText, getTransformContext, repaint, repaint, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, getTransformContext, repaint, repaint
public void addInteractor(Interactor i)
public void addLayerListener(LayerListener l)
public void addLayerMotionListener(LayerMotionListener l)
public void dispatchEvent(java.awt.AWTEvent event)
dispatchEvent
in interface EventAcceptor
public java.util.Iterator interactors()
public boolean isConsuming()
public boolean isEnabled()
isEnabled
in interface EventAcceptor
protected void processLayerEvent(LayerEvent event)
public void removeInteractor(Interactor i)
public void removeLayerListener(LayerListener l)
public void removeLayerMotionListener(LayerMotionListener l)
public void setConsuming(boolean flag)
public void setEnabled(boolean flag)
setEnabled
in interface EventAcceptor