Package diva.canvas.event
Interface EventAcceptor
-
- All Superinterfaces:
CanvasComponent
- All Known Implementing Classes:
BasicCanvasPane
,BasicGraphPane
,BubblePane
,CanvasPane
,EventLayer
,FigureLayer
,GraphicsPane
,GraphPane
,PaneWrapper
,SimplePane
public interface EventAcceptor extends CanvasComponent
An event acceptor is a canvas component object that is prepared to accept an AWT event, and then possibly process and consume it. This interface is also used as a tagging interface so that event-processing routines can tell whether certain objects are smart enough to handle events for themselves.- Version:
- $Id$
- Author:
- John Reekie
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispatchEvent(java.awt.AWTEvent event)
Dispatch an AWT event within this component.boolean
isEnabled()
Test the enabled flag of this object.void
setEnabled(boolean flag)
Set the enabled flag of this object.-
Methods inherited from interface diva.canvas.CanvasComponent
getParent, getTransformContext, repaint, repaint
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Test the enabled flag of this object. If true, the object is prepared to handle events with processEvent().- Returns:
- true if the object is prepared to handle events with processEvent()
-
setEnabled
void setEnabled(boolean flag)
Set the enabled flag of this object. If true, the object is prepared to handle events with processEvent().- Parameters:
flag
- True if the object is prepared to handle events with processEvent();
-
dispatchEvent
void dispatchEvent(java.awt.AWTEvent event)
Dispatch an AWT event within this component. The implementing object should test if it is enabled first, and return if not. Otherwise, it should handle the event in whatever way it thinks appropriate.- Parameters:
event
- the event.
-
-