|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--javax.swing.JApplet | +--ca.bc.webarts.jOggPlayer
An Open Source Platform independant Graphical Vorbis Ogg Player!
You can now listen to your Oggs using an app that is NOT bloated. In fact
this app/let can run on a web page (it is under 50 kB).
It provides the usual basics needed to enjoy your files:
Based on the Great work done by the jCraft crew to build jOrbis - the Java implementation of the Vorbis Ogg Codec by The XIPHOPHORUS Company.
All the aforementioned work has been released
under an OpenSource GNU General Public License.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Inner Class Summary | |
(package private) class |
jOggPlayer.OggFileRef
A simple class to encapsulate the information required to use/reference an Ogg file. |
(package private) class |
jOggPlayer.PlayList
A simple class to encapsulate the storage of references to Ogg files in a Playlist style. |
Inner classes inherited from class javax.swing.JApplet |
javax.swing.JApplet.AccessibleJApplet |
Inner classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) java.awt.Image |
aboutGraphic_
|
(package private) java.awt.event.ActionListener |
addFromPlaylistActionListener
|
(package private) java.awt.event.ActionListener |
addSongActionListener
|
(package private) java.awt.event.ActionListener |
addURLActionListener
|
(package private) static java.lang.String |
APP_NAME
|
(package private) static java.net.URL |
appCodeBase_
|
(package private) static jOggPlayer |
applicationPlayer
|
(package private) static ColouredLabel |
artistLabel
|
(package private) static ColouredLabel |
artistLabelValue
|
(package private) java.lang.String[] |
availableTextureNames_
|
(package private) java.awt.Image |
backgroundTexture_
|
(package private) java.lang.String |
backgroundTextureFilename_
|
(package private) java.io.InputStream |
bitStream
|
(package private) static kiwi.ui.KPanel |
bodyPanel
|
(package private) byte[] |
buffer
|
(package private) int |
bufferLengthInBytes
|
(package private) static int |
bufferSize_
|
(package private) kiwi.ui.KButton |
button
|
(package private) kiwi.ui.KButton |
buttonAddToPlaylist
|
(package private) kiwi.ui.KButton |
buttonAddUrlToPlaylist
|
(package private) java.awt.Color |
buttonBackColour_
|
(package private) kiwi.ui.KButton |
buttonDeleteFromPlaylist
|
(package private) kiwi.ui.KButton |
buttonLast
|
(package private) kiwi.ui.KButton |
buttonNext
|
(package private) static kiwi.ui.KPanel |
buttonPanel
|
(package private) kiwi.ui.KButton |
buttonPause
|
(package private) kiwi.ui.KButton |
buttonRefreshPlaylist
|
(package private) int |
bytes
|
(package private) javax.swing.JComboBox |
cb
|
(package private) int |
channels
|
(package private) javax.swing.JCheckBox |
checkBoxLoop
|
(package private) javax.swing.JCheckBox |
checkBoxPlaylist
|
(package private) javax.swing.JCheckBox |
checkBoxRandom
|
(package private) static javax.swing.JCheckBox |
checkBoxRecursePlaylist
|
(package private) static kiwi.ui.KPanel |
checkPanel
|
(package private) static java.lang.String |
CLASSPATH
|
(package private) int |
controlHeight_
|
(package private) static kiwi.ui.KPanel |
controlPanel
|
(package private) static byte[] |
convbuffer
|
(package private) static int |
convsize
|
(package private) double |
currentVolumeMultiplier_
|
(package private) int |
currVolSetting_
|
(package private) java.util.Date |
date
|
(package private) java.awt.event.ActionListener |
deleteAllActionListener
|
(package private) java.awt.event.ActionListener |
deleteSelectedSongActionListener
|
(package private) static java.awt.Color |
displayBackColour_
|
(package private) java.awt.Font |
displayFont_
|
(package private) java.awt.Font |
displayFontBold_
|
(package private) int |
displayHeight_
|
(package private) static javax.swing.JPopupMenu |
displayMenu
|
(package private) static javax.swing.JPanel |
displayPanel
|
(package private) static java.awt.Color |
displayTextColour_
|
(package private) int |
displayWidth_
|
(package private) static kiwi.ui.KPanel |
footerPanel
|
(package private) int |
format
|
(package private) static javax.swing.JFrame |
frame
|
(package private) static java.awt.Dimension |
frameInitSize_
|
(package private) int |
frameSizeInBytes
|
(package private) static kiwi.ui.KPanel |
headerPanel
|
(package private) static java.lang.String |
ICON_JAR_FILENAME
|
(package private) javax.swing.ImageIcon |
iconAdd
|
(package private) javax.swing.ImageIcon |
iconAddUrl
|
(package private) javax.swing.ImageIcon |
iconBack
|
(package private) javax.swing.ImageIcon |
iconDelete
|
(package private) javax.swing.ImageIcon |
iconForward
|
(package private) static java.util.jar.JarFile |
iconJar
|
(package private) javax.swing.ImageIcon |
iconLoop
|
(package private) javax.swing.ImageIcon |
iconPause
|
(package private) javax.swing.ImageIcon |
iconPlay
|
(package private) javax.swing.ImageIcon |
iconRefresh
|
(package private) javax.swing.ImageIcon |
iconSelectedLoop
|
(package private) javax.swing.ImageIcon |
iconStop
|
(package private) static java.lang.String |
IMAGE_DIR
|
(package private) static java.lang.String[] |
initArgs_
|
(package private) static javax.swing.JPanel |
innerDisplayPanel
|
(package private) int |
innerDisplayPanelHeight_
|
(package private) int |
innerDisplayPanelWidth_
|
(package private) static kiwi.ui.KPanel |
innerFooterPanel
|
(package private) static kiwi.ui.KPanel |
innerHeaderPanel
|
(package private) static javax.swing.JPanel |
innerLeftDisplayPanel
|
(package private) int |
innerLeftDisplayPanelHeight_
|
(package private) int |
innerLeftDisplayPanelWidth_
|
(package private) static kiwi.ui.KPanel |
innerPanel
|
(package private) static kiwi.ui.KPanel |
innerPlaylistPanel
|
(package private) static javax.swing.JPanel |
innerRightDisplayPanel
|
(package private) int |
innerRightDisplayPanelHeight_
|
(package private) static int |
left_vol_scale
|
(package private) static kiwi.ui.KPanel |
leftPanel
|
(package private) boolean |
logVolumeScale_
|
(package private) java.lang.Thread |
looperThread_
|
(package private) java.lang.Runnable |
loopingRunnable_
Runs the Looping of Songs in its own thread. |
(package private) boolean |
loopPaused_
|
(package private) static java.awt.Color |
mainBackColour_
|
(package private) static javax.swing.JPopupMenu |
mainMenu
|
(package private) static int |
maxVolScale_
|
(package private) com.jcraft.jogg.Page |
og
|
(package private) com.jcraft.jogg.Packet |
op
|
(package private) com.jcraft.jogg.StreamState |
os
|
(package private) javax.sound.sampled.SourceDataLine |
outputLine
|
(package private) com.jcraft.jogg.SyncState |
oy
|
(package private) kiwi.ui.KPanel |
panel
|
(package private) java.lang.Thread |
playerThread_
|
(package private) jOggPlayer.PlayList |
playList
|
(package private) java.awt.Color |
playlistBackColour_
|
(package private) static java.lang.String |
playListDir_
|
(package private) java.lang.String |
playListFile_
|
(package private) int |
playlistHeight_
|
(package private) static javax.swing.JPopupMenu |
playlistMenu
|
(package private) boolean |
playListShowing_
|
(package private) static java.awt.event.MouseListener |
popupListener
|
(package private) int |
progressCount_
|
(package private) static double |
progressFudge_
|
(package private) int |
rate
|
(package private) static int |
right_vol_scale
|
(package private) static kiwi.ui.KPanel |
rightPanel
|
(package private) boolean |
running_as_applet
|
(package private) java.awt.event.ActionListener |
savePlaylistActionListener
|
(package private) boolean |
showButtonBorders_
|
(package private) boolean |
showTextures_
|
(package private) java.util.Vector |
songComments_
|
(package private) javax.swing.JProgressBar |
songProgress
|
(package private) int |
songProgressHeight_
|
(package private) long |
songStartTime_
|
private static java.lang.String |
SYSTEM_FILE_SEPERATOR
|
(package private) static ColouredLabel |
timeLabel
|
(package private) static ColouredLabel |
timeLabelValue
|
(package private) boolean |
timerRunning_
|
(package private) java.lang.Runnable |
timeWatcherRunnable_
Handles the Timer display in its own Thread. |
(package private) java.lang.Thread |
timeWatcherThread_
|
(package private) static ColouredLabel |
titleLabel
|
(package private) static ColouredLabel |
titleLabelValue
|
(package private) static java.lang.String |
USER_DIR
|
(package private) static java.awt.GraphicsEnvironment |
USER_GRAPHIC_ENV
|
(package private) com.jcraft.jorbis.Block |
vb
|
(package private) com.jcraft.jorbis.Comment |
vc
|
(package private) com.jcraft.jorbis.DspState |
vd
|
(package private) static java.lang.String |
VERSION
|
(package private) com.jcraft.jorbis.Info |
vi
|
(package private) java.awt.Color |
volumeBackColour_
|
(package private) static javax.swing.JSlider |
volumeSlider
|
(package private) int |
volumeWidth_
|
Fields inherited from class javax.swing.JApplet |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.applet.Applet |
serialVersionUID, stub |
Fields inherited from class java.awt.Panel |
base, nameCounter |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, needsPaint, printing, printingThreads |
Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
jOggPlayer()
|
|
jOggPlayer(java.lang.String[] args)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles all the Actions originating from the Control Buttons. |
private java.lang.String |
chooseAFilename(java.lang.String startPath)
Encapsulates the showing of the FileChooser dialog and returns a String representing the absolute path |
private java.lang.String |
chooseAFilename(java.lang.String startPath,
boolean useFilter)
Encapsulates the showing of the FileChooser dialog and returns a String representing the abvsolute path |
private java.lang.String |
getAbsolutePathFromClasspath(java.lang.String filename)
|
private static java.net.URL |
getFileBaseURL(java.lang.String fileString)
Creates a URL for the specified filename string. |
private java.net.URL[] |
getFileBaseURLs(java.lang.String[] fileStrings)
Creates a URL[] for the given Strings. |
private javax.sound.sampled.SourceDataLine |
getOutputLine(int channels,
int rate)
|
private java.lang.String[] |
getPlaylistArray(java.lang.String[] fileNames)
|
private java.util.Vector |
getPlaylistVector(java.lang.String fileNames)
|
private java.util.Vector |
getPlaylistVector(java.lang.String[] fileNames)
|
private void |
init_audio(int channels,
int rate)
|
private void |
init_jorbis()
|
void |
init()
|
private void |
initMenus()
Gets the Menus setup |
private void |
initUI()
Gets the GUI setup |
private void |
loadIconImages()
|
private java.awt.Image |
loadImage(java.lang.String imageFilename,
java.lang.String jarFilename)
|
private void |
loadPlaylist()
Loads a playlist from the playlist file specified in the playListFile_ field. |
private java.lang.String[] |
loadTextureNames()
|
static void |
main(java.lang.String[] arg)
|
private static boolean |
mySleep(long waitTime)
A method to simply abstract the Try/Catch required to put the current thread to sleep for the specified time in ms. |
private int |
readFromStream(byte[] buffer,
int index,
int bufferSize_)
|
private java.lang.String |
readline(java.io.InputStream is)
Reads a single line from the InputStream. |
void |
run()
The Runnable to do the actual playing of the song. |
private void |
savePlaylist(java.lang.String filename)
Saves the playlist to the file specified in the playListFile_ field. |
private void |
setColours()
Sets all the Various colours to their current variable values. |
private void |
setDisplayFont(java.awt.Font newFont)
Changes all the Labels in the Display area to the ne font. |
void |
start()
|
private void |
startTimer()
|
void |
stop()
|
private void |
tryPlay(java.lang.String item)
|
private void |
tryPlay(java.net.URL url)
|
private void |
updateDisplayPopup()
Updates the tooltip popup text for the Display area with the latest song info. |
double |
volumeMultiplier(int currSetting)
Converts a linear mapped value to its Log equivalent. |
Methods inherited from class javax.swing.JApplet |
addImpl, createRootPane, createRootPaneException, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.applet.Applet |
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Panel |
|
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, transferFocus, validate, validateTree, writeObject |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private static final java.lang.String SYSTEM_FILE_SEPERATOR
static final java.lang.String IMAGE_DIR
static final java.lang.String ICON_JAR_FILENAME
static final java.lang.String USER_DIR
static final java.lang.String CLASSPATH
static final java.lang.String APP_NAME
static final java.lang.String VERSION
static final java.awt.GraphicsEnvironment USER_GRAPHIC_ENV
boolean running_as_applet
boolean playListShowing_
boolean loopPaused_
boolean timerRunning_
boolean logVolumeScale_
boolean showButtonBorders_
boolean showTextures_
java.lang.Thread playerThread_
java.lang.Thread looperThread_
java.lang.Thread timeWatcherThread_
static double progressFudge_
static java.net.URL appCodeBase_
double currentVolumeMultiplier_
long songStartTime_
java.util.Date date
static java.lang.String[] initArgs_
int progressCount_
static jOggPlayer applicationPlayer
static java.util.jar.JarFile iconJar
static java.lang.String playListDir_
java.lang.String playListFile_
jOggPlayer.PlayList playList
static java.awt.Color mainBackColour_
java.awt.Color playlistBackColour_
java.awt.Color buttonBackColour_
java.awt.Color volumeBackColour_
static java.awt.Color displayBackColour_
static java.awt.Color displayTextColour_
java.lang.String[] availableTextureNames_
java.awt.Font displayFont_
java.awt.Font displayFontBold_
static int maxVolScale_
int currVolSetting_
static int left_vol_scale
static int right_vol_scale
static java.awt.Dimension frameInitSize_
int playlistHeight_
int innerLeftDisplayPanelHeight_
int innerLeftDisplayPanelWidth_
int innerRightDisplayPanelHeight_
int innerDisplayPanelHeight_
int innerDisplayPanelWidth_
int songProgressHeight_
int controlHeight_
int volumeWidth_
int displayHeight_
int displayWidth_
java.awt.Image aboutGraphic_
java.awt.Image backgroundTexture_
javax.swing.ImageIcon iconDelete
javax.swing.ImageIcon iconAdd
javax.swing.ImageIcon iconAddUrl
javax.swing.ImageIcon iconRefresh
javax.swing.ImageIcon iconPlay
javax.swing.ImageIcon iconPause
javax.swing.ImageIcon iconStop
javax.swing.ImageIcon iconForward
javax.swing.ImageIcon iconBack
javax.swing.ImageIcon iconLoop
javax.swing.ImageIcon iconSelectedLoop
java.lang.String backgroundTextureFilename_
kiwi.ui.KPanel panel
javax.swing.JComboBox cb
kiwi.ui.KButton button
kiwi.ui.KButton buttonDeleteFromPlaylist
kiwi.ui.KButton buttonAddToPlaylist
kiwi.ui.KButton buttonAddUrlToPlaylist
kiwi.ui.KButton buttonRefreshPlaylist
kiwi.ui.KButton buttonPause
kiwi.ui.KButton buttonLast
kiwi.ui.KButton buttonNext
javax.swing.JCheckBox checkBoxLoop
javax.swing.JCheckBox checkBoxRandom
javax.swing.JCheckBox checkBoxPlaylist
static javax.swing.JCheckBox checkBoxRecursePlaylist
javax.swing.JProgressBar songProgress
static javax.swing.JFrame frame
static javax.swing.JSlider volumeSlider
static ColouredLabel artistLabel
static ColouredLabel titleLabel
static ColouredLabel timeLabel
static ColouredLabel artistLabelValue
static ColouredLabel titleLabelValue
static ColouredLabel timeLabelValue
static kiwi.ui.KPanel headerPanel
static kiwi.ui.KPanel bodyPanel
static kiwi.ui.KPanel footerPanel
static kiwi.ui.KPanel leftPanel
static kiwi.ui.KPanel innerPanel
static kiwi.ui.KPanel rightPanel
static kiwi.ui.KPanel innerHeaderPanel
static javax.swing.JPanel displayPanel
static kiwi.ui.KPanel controlPanel
static kiwi.ui.KPanel innerFooterPanel
static javax.swing.JPanel innerDisplayPanel
static javax.swing.JPanel innerLeftDisplayPanel
static javax.swing.JPanel innerRightDisplayPanel
static kiwi.ui.KPanel innerPlaylistPanel
static kiwi.ui.KPanel checkPanel
static kiwi.ui.KPanel buttonPanel
static javax.swing.JPopupMenu mainMenu
static javax.swing.JPopupMenu playlistMenu
static javax.swing.JPopupMenu displayMenu
static java.awt.event.MouseListener popupListener
java.io.InputStream bitStream
static int bufferSize_
static int convsize
static byte[] convbuffer
com.jcraft.jogg.SyncState oy
com.jcraft.jogg.StreamState os
com.jcraft.jogg.Page og
com.jcraft.jogg.Packet op
com.jcraft.jorbis.Info vi
com.jcraft.jorbis.Comment vc
com.jcraft.jorbis.DspState vd
com.jcraft.jorbis.Block vb
byte[] buffer
int bytes
int format
int rate
int channels
javax.sound.sampled.SourceDataLine outputLine
int frameSizeInBytes
int bufferLengthInBytes
java.util.Vector songComments_
java.awt.event.ActionListener deleteSelectedSongActionListener
java.awt.event.ActionListener savePlaylistActionListener
java.awt.event.ActionListener deleteAllActionListener
java.awt.event.ActionListener addSongActionListener
java.awt.event.ActionListener addFromPlaylistActionListener
java.awt.event.ActionListener addURLActionListener
java.lang.Runnable loopingRunnable_
java.lang.Runnable timeWatcherRunnable_
Why not use the Timer class in the JDK??? Because it is since JDK 1.3.
Constructor Detail |
public jOggPlayer()
public jOggPlayer(java.lang.String[] args)
Method Detail |
public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
private java.lang.String getAbsolutePathFromClasspath(java.lang.String filename)
private java.awt.Image loadImage(java.lang.String imageFilename, java.lang.String jarFilename)
private java.lang.String[] loadTextureNames()
private void loadIconImages()
private void init_jorbis()
private javax.sound.sampled.SourceDataLine getOutputLine(int channels, int rate)
private void init_audio(int channels, int rate)
public void run()
run
in interface java.lang.Runnable
public void stop()
stop
in class java.applet.Applet
private int readFromStream(byte[] buffer, int index, int bufferSize_)
private void startTimer()
public double volumeMultiplier(int currSetting)
currSetting
- is the linear value to convert.
Acceptable values: 0 = mute, 10 = full, 11 is for fun.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
private java.net.URL[] getFileBaseURLs(java.lang.String[] fileStrings)
private static java.net.URL getFileBaseURL(java.lang.String fileString)
private void tryPlay(java.net.URL url)
private void tryPlay(java.lang.String item)
private void savePlaylist(java.lang.String filename)
private void loadPlaylist()
private java.lang.String readline(java.io.InputStream is)
private void updateDisplayPopup()
private void setColours()
private void setDisplayFont(java.awt.Font newFont)
private void initMenus()
private void initUI()
private static boolean mySleep(long waitTime)
waitTime
- the sleep time in milli seconds (ms).private java.lang.String chooseAFilename(java.lang.String startPath)
private java.lang.String chooseAFilename(java.lang.String startPath, boolean useFilter)
private java.util.Vector getPlaylistVector(java.lang.String fileNames)
private java.lang.String[] getPlaylistArray(java.lang.String[] fileNames)
private java.util.Vector getPlaylistVector(java.lang.String[] fileNames)
public static void main(java.lang.String[] arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |