|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.pscode.ui.tracker.TrackerPanel
public class TrackerPanel
An audio track player with GUI and simple controls.
09-11-17
09-09-23
09-09-13
09-08-18 Source released09-08-11 First public release
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TrackerPanel(String applicationName)
|
|
| Method Summary | |
|---|---|
void |
adjustVolume(boolean up)
Adjusts the volume one notch of the volume slider |
void |
clearTraceSoon()
|
AudioPlotPanel |
getAudioPlotPanel()
|
JPanel |
getControlPanel()
|
double |
getDBVolume(double gain)
Provides the DB version of a linear volume. |
double |
getLinearVolume(double gainDB)
Provides the linear version of a volume in DB. |
int |
getSeconds()
|
String |
getTimeString(double seconds)
|
int |
getTranspired()
|
boolean |
isInvokedStop()
|
void |
keyPressed(KeyEvent ke)
Respond to arrow keys. |
void |
keyReleased(KeyEvent ke)
|
void |
keyTyped(KeyEvent ke)
|
void |
play()
|
void |
rewind()
|
static String |
secondsToTime(int seconds)
Convert a raw count in seconds to the more conventional, hours/minutes/seconds |
void |
setActive(boolean active)
Sets the activity flag of the thread. |
void |
setClip(Clip newClip)
|
void |
setClipTime()
|
void |
setDefaultFocus()
|
void |
setKeyListener(KeyListener keyListener)
|
void |
setLineListener(LineListener lineListener)
|
void |
showProgressBar(String name)
|
void |
shutDown()
flag the thread to end, then exit the VM. |
void |
skipBack()
skipMicroseconds backwards in the current track. |
void |
skipForward()
skipMicroseconds forwards in the current track. |
void |
stopClip()
|
void |
update()
Update the GUI (progress and trace) as well as act on rewind/ff buttons (repeat rate) every 80 milliseconds. |
void |
update(LineEvent le)
|
void |
updatePlotPanel()
|
void |
updateVolume()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TrackerPanel(String applicationName)
| Method Detail |
|---|
public void setKeyListener(KeyListener keyListener)
public void updateVolume()
public void showProgressBar(String name)
public void updatePlotPanel()
public void setClipTime()
public boolean isInvokedStop()
public void update(LineEvent le)
update in interface LineListenerpublic void setLineListener(LineListener lineListener)
public String getTimeString(double seconds)
public JPanel getControlPanel()
public void setDefaultFocus()
public void clearTraceSoon()
public void rewind()
public AudioPlotPanel getAudioPlotPanel()
public void stopClip()
public void setClip(Clip newClip)
public void play()
public void skipBack()
public void skipForward()
public double getLinearVolume(double gainDB)
public double getDBVolume(double gain)
public void update()
public void setActive(boolean active)
public void shutDown()
public void keyReleased(KeyEvent ke)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent ke)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent ke)
keyPressed in interface KeyListenerpublic void adjustVolume(boolean up)
public static String secondsToTime(int seconds)
seconds -
public int getSeconds()
public int getTranspired()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||