|
|||||||||
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.Window | +--javazoom.jlGui.Player
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static int |
INIT
|
static int |
OPEN
|
static int |
PAUSE
|
static int |
PLAY
|
static int |
STOP
|
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 | |
Player(java.lang.String Skin,
int loglevel,
java.lang.String logfile,
java.awt.Frame top)
Constructor. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Manages events. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent e)
DnD : dragEnter implementation. |
void |
dragExit(java.awt.dnd.DropTargetEvent e)
DnD : dragExit implementation. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent e)
DnD : dragOver implementation. |
void |
drop(java.awt.dnd.DropTargetDropEvent e)
DnD : Drop implementation. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
DnD : dropActionChanged implementation. |
void |
exit(int status)
Kills the player. |
protected int |
getPlayerState()
Returns Player state. |
Playlist |
getPlaylist()
Returns Playlist instance. |
boolean |
loadPlaylist(java.lang.String playlistName)
Loads a new playlist. |
void |
loadSkin(java.io.InputStream skinStream)
Loads a new skin from any input stream. |
void |
loadSkin(java.lang.String skinName)
Loads a new skin from local file system. |
static void |
main(java.lang.String[] args)
Entry point. |
void |
paint(java.awt.Graphics g)
|
void |
pressEject()
Simulates "Eject" selection. |
void |
pressNext()
Simulates "Next" selection. |
void |
pressPrevious()
Simulates "Previous" selection. |
void |
pressStart()
Simulates "Play" selection. |
void |
pressStop()
Simulates "Stop" selection. |
void |
setCurrentSong(PlaylistItem pli)
Sets the current song to play and start playing if needed. |
void |
setSkin(java.lang.String sk)
Sets skin filename. |
void |
update(java.awt.Graphics g)
|
void |
updateCursor(int secondsAmount,
int total)
BasicPlayerListener implementation. |
void |
updateMediaData(byte[] data)
BasicPlayerListener implementation. |
void |
updateMediaState(java.lang.String state)
BasicPlayerListener implementation. |
void |
windowActivated(java.awt.event.WindowEvent e)
Invoked when the window is set to be the user's active window, which means the window (or one of its subcomponents) will receive keyboard events. |
void |
windowClosed(java.awt.event.WindowEvent e)
Invoked when a window has been closed as the result of calling dispose on the window |
void |
windowClosing(java.awt.event.WindowEvent e)
Invoked when the user attempts to close the window from the window's system menu. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
Invoked when a window is no longer the user's active window, which means that keyboard events will no longer be delivered to the window or its subcomponents |
void |
windowDeiconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a minimized to a normal state. |
void |
windowIconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a normal to a minimized state. |
void |
windowOpened(java.awt.event.WindowEvent e)
Invoked the first time a window is made visible. |
Methods inherited from class java.awt.Window |
addNotify, addWindowListener, applyResourceBundle, applyResourceBundle, dispose, finalize, getAccessibleContext, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INIT
public static final int OPEN
public static final int PLAY
public static final int PAUSE
public static final int STOP
Constructor Detail |
public Player(java.lang.String Skin, int loglevel, java.lang.String logfile, java.awt.Frame top)
Method Detail |
public boolean loadPlaylist(java.lang.String playlistName)
public void loadSkin(java.lang.String skinName)
public void loadSkin(java.io.InputStream skinStream)
public void setCurrentSong(PlaylistItem pli)
public void updateCursor(int secondsAmount, int total)
updateCursor
in interface BasicPlayerListener
public void updateMediaState(java.lang.String state)
updateMediaState
in interface BasicPlayerListener
public void updateMediaData(byte[] data)
updateMediaData
in interface BasicPlayerListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
public void update(java.awt.Graphics g)
update
in class java.awt.Container
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void dragEnter(java.awt.dnd.DropTargetDragEvent e)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent e)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent e)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent e)
drop
in interface java.awt.dnd.DropTargetListener
public void setSkin(java.lang.String sk)
public Playlist getPlaylist()
protected int getPlayerState()
public void exit(int status)
public void pressStart()
public void pressStop()
public void pressNext()
public void pressPrevious()
public void pressEject()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |