|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mediaframe.mpeg1.controlpanel.ControlPanel
The ControlPanel responds for painting of the control panel
(play/pause, mute on/mute off, stop buttons).
IControlPanel| Field Summary | |
private static int |
DISABLED
The "disabled" video player state. |
(package private) boolean |
mute
The mute flag. |
private static int |
PAUSED
The "paused" video player state. |
private ControlButton |
play
The play button of the control panel. |
private static int |
PLAYED
The "played" video player state. |
private MPEG1 |
player
The reference to the video player applet. |
private java.awt.Panel |
screen
The reference to the video screen. |
private ControlButton |
speaker
The mute button of the control panel. |
private int |
state
The state of the video player. |
private ControlButton |
stop
The stop button of the control panel. |
private static int |
STOPPED
The "stopped" video player state. |
| Constructor Summary | |
ControlPanel()
|
|
| Method Summary | |
void |
disablePanel()
Implements "disable" action of the control panel. |
void |
endPlay()
Implements "end play" action of the control panel. |
boolean |
getMute()
Gets mute value. |
void |
initPanel(MPEG1 player,
int heigth)
Initialization of the control panel. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Stub for the MouseListener interface (does nothing). |
void |
mouseEntered(java.awt.event.MouseEvent e)
Stub for the MouseListener interface (does nothing). |
void |
mouseExited(java.awt.event.MouseEvent e)
Stub for the MouseListener interface (does nothing). |
void |
mousePressed(java.awt.event.MouseEvent e)
The mouse is pressed on the button (Mouse Listener event). |
void |
mouseReleased(java.awt.event.MouseEvent e)
Stub for the MouseListener interface (does nothing). |
void |
paint(java.awt.Graphics g)
Paints the control panel. |
void |
pause()
Implements "pause" action of the control panel. |
void |
play()
Implements "play" action of the control panel. |
void |
setMute(boolean mute)
Sets the mute value. |
void |
stop()
Implements "stop" action of the control panel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MPEG1 player
private java.awt.Panel screen
private ControlButton play
private ControlButton stop
private ControlButton speaker
private static final int PLAYED
private static final int PAUSED
private static final int STOPPED
private static final int DISABLED
private int state
boolean mute
| Constructor Detail |
public ControlPanel()
| Method Detail |
public void initPanel(MPEG1 player,
int heigth)
initPanel in interface IControlPanelplayer - the reference to the called applet.heigth - height of the control panel.public void paint(java.awt.Graphics g)
paint in interface IControlPanelg - the graphics context of the video player.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the event state information.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void setMute(boolean mute)
setMute in interface IControlPanelmute - the mute value.public boolean getMute()
getMute in interface IControlPanelpublic void play()
play in interface IControlPanelpublic void stop()
stop in interface IControlPanelpublic void endPlay()
endPlay in interface IControlPanelpublic void pause()
pause in interface IControlPanelpublic void disablePanel()
disablePanel in interface IControlPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||