|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSoundExplorer
public class SoundExplorer
This class allows you to explore a Sound. You can see the line drawing of the sound samples and play all or part of a sound. You can zoom in to see all the samples in the sound or zoom out to see the entire sound. You can click on the sound wave to see the value at that index. Copyright Georgia Institute of Technology 2004
| Constructor Summary | |
|---|---|
SoundExplorer(SimpleSound sound,
boolean inStereo)
Constructor that takes a sound and a boolean flag |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Method to handle an action event |
void |
checkScroll()
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible |
void |
mouseClicked(MouseEvent e)
Handle a mouse click event |
void |
mouseDragged(MouseEvent e)
Method to handle a mouse dragged event |
void |
mouseEntered(MouseEvent e)
Method to handle a mouse entered event |
void |
mouseExited(MouseEvent e)
Method to handle a mouse exited event |
void |
mouseMoved(MouseEvent e)
Method to handle a mouse move event |
void |
mousePressed(MouseEvent e)
Method to handle a mouse press |
void |
mouseReleased(MouseEvent e)
Method to handle a mouse release |
void |
setBase(int base)
Method to set the base for the index. |
void |
setTitle(String s)
Method to set the title on the main window |
void |
update(LineEvent e)
Method to handle the line event update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoundExplorer(SimpleSound sound,
boolean inStereo)
sound - the sound to viewinStereo - true if you want to show it in stereo| Method Detail |
|---|
public void setTitle(String s)
s - the string to use as the titlepublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - the mouse eventpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - the mouse eventpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - the mouse eventpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - the mouse eventpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - the mouse eventpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - the mouse eventpublic void update(LineEvent e)
update in interface LineListenere - the line eventpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - the action eventpublic void checkScroll()
public void setBase(int base)
base - the new base to use (for example use setBase(1))
to use base 1 instead of 0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||