|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--javazoom.jlGui.Player
| 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, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getAccessibleContext, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| 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 BasicPlayerListenerpublic void updateMediaState(java.lang.String state)
updateMediaState in interface BasicPlayerListenerpublic void updateMediaData(byte[] data)
updateMediaData in interface BasicPlayerListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerpublic void update(java.awt.Graphics g)
update in class java.awt.Containerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void dragEnter(java.awt.dnd.DropTargetDragEvent e)
dragEnter in interface java.awt.dnd.DropTargetListenerpublic void dragOver(java.awt.dnd.DropTargetDragEvent e)
dragOver in interface java.awt.dnd.DropTargetListenerpublic void dragExit(java.awt.dnd.DropTargetEvent e)
dragExit in interface java.awt.dnd.DropTargetListenerpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
dropActionChanged in interface java.awt.dnd.DropTargetListenerpublic void drop(java.awt.dnd.DropTargetDropEvent e)
drop in interface java.awt.dnd.DropTargetListenerpublic 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||