|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object at.ofai.music.beatroot.EventProcessor
class EventProcessor
Key, menu, and button event processing. All user interaction with the system is processed by the single EventProcessor object, which has handles to the other main objects for performing the requested actions.
Field Summary | |
---|---|
protected AudioPlayer |
audioPlayer
Handle to BeatRoot's audio player |
protected AudioProcessor |
audioProcessor
Handle to BeatRoot's audio processor |
protected Chooser |
chooser
Handle to BeatRoot's file chooser |
static boolean |
debug
Flag for enabling debugging output |
protected GUI |
gui
Handle to BeatRoot's GUI |
Constructor Summary | |
---|---|
EventProcessor(GUI g,
AudioPlayer ap,
AudioProcessor proc,
Chooser ch)
Constructor: |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Processes all user menu and button actions. |
void |
keyPressed(java.awt.event.KeyEvent e)
Processes user key events which are not associated with menu items. |
void |
keyReleased(java.awt.event.KeyEvent e)
Ignore key releases, since processing is performed as soon as the key is pressed. |
void |
keyTyped(java.awt.event.KeyEvent e)
Ignore KeyEvents indicating that a key was typed, since keyPressed() has already dealt with this keystroke. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GUI gui
protected AudioPlayer audioPlayer
protected AudioProcessor audioProcessor
protected Chooser chooser
public static boolean debug
Constructor Detail |
---|
public EventProcessor(GUI g, AudioPlayer ap, AudioProcessor proc, Chooser ch)
g
- Handle to BeatRoot's GUIap
- Handle to BeatRoot's audio playerproc
- Handle to BeatRoot's audio processorch
- Handle to BeatRoot's file chooserMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The Java event handling system's representation of the user actionpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |