Package edu.umd.cs.piccolo.event
Interface PInputEventListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
PBasicInputEventHandler,PDragEventHandler,PDragSequenceEventHandler,PInputManager,PPanEventHandler,PPickPath,PZoomEventHandler
PInputEventListener defines the most basic interface for objects that
want to listen to PNodes for input events. This interface is very simple so
that others may extend Piccolo's input management system. If you are just
using Piccolo's default input management system then you will most often use
PBasicInputEventHandler to register with a node for input events.
- Version:
- 1.0
- Author:
- Jesse Grosjean
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessEvent(PInputEvent event, int type) Called whenever an event is emitted.
-
Method Details
-
processEvent
Called whenever an event is emitted. Used to notify listeners that an event is available for proecessing.- Parameters:
event- event that was emittedtype- type of event
-