|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object at.ofai.music.beatroot.ZoomListener
class ZoomListener
A listener class for notifying the GUI's main panel about changes in the zoom level.
Field Summary | |
---|---|
(package private) BeatTrackDisplay |
displayPanel
The main data panel of BeatRoot's GUI |
(package private) javax.swing.JScrollBar |
scroller
The scrollbar for selecting what part of the audio data is displayed |
(package private) javax.swing.JTextField |
valueField
An editable text field containing the length (in seconds) of visible audio data |
Constructor Summary | |
---|---|
ZoomListener(BeatTrackDisplay btd,
javax.swing.JScrollBar sb,
javax.swing.JTextField vf)
Constructor: |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Called when a zoom button is pressed or the text field is edited. |
static double |
delta(double value,
double sign)
Increments or decrements and rounds the length of visible audio data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
javax.swing.JScrollBar scroller
BeatTrackDisplay displayPanel
javax.swing.JTextField valueField
Constructor Detail |
---|
public ZoomListener(BeatTrackDisplay btd, javax.swing.JScrollBar sb, javax.swing.JTextField vf)
btd
- The main data panel of BeatRoot's GUIsb
- The scrollbar for selecting what part of the audio data is displayedvf
- The text field containing the length (in seconds) of visible audio dataMethod Detail |
---|
public static double delta(double value, double sign)
value
- The original length of visible audio datasign
- The direction of change (+1.0 or -1.0)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The object indicating what kind of event occurred
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |