at.ofai.music.beatroot
class EventProcessor extends Object implements ActionListener, KeyListener
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(ActionEvent e) Processes all user menu and button actions. |
void | keyPressed(KeyEvent e) Processes user key events which are not associated with menu items.
|
void | keyReleased(KeyEvent e) Ignore key releases, since processing is performed as soon as the key is pressed.
|
void | keyTyped(KeyEvent e) Ignore KeyEvents indicating that a key was typed, since keyPressed() has
already dealt with this keystroke.
|
Parameters: g Handle to BeatRoot's GUI ap Handle to BeatRoot's audio player proc Handle to BeatRoot's audio processor ch Handle to BeatRoot's file chooser
Parameters: e The Java event handling system's representation of the user action