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(AWTEvent event)
Dispatch an AWT event on this layer.
|
Iterator |
interactors()
Return an iteractor 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(AWTEvent event)
dispatchEvent
in interface EventAcceptor
public 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
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.