mediaframe.mpeg1.controlpanel
Interface IControlPanel

All Known Implementing Classes:
ControlPanel

public interface IControlPanel

The IControlPanel interface provides access to the control panel of the Video Player.

Version:
1.0 26.07.2002
Author:
Kostya Belous
See Also:
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 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.
 

Method Detail

initPanel

public void initPanel(MPEG1 player,
                      int heigth)
Initialization of the control panel. Constructs the buttons (play/pause, mute on/mute off, stop). Disables the control panel after initialization.

Parameters:
player - the reference to the called applet.
heigth - height of the movie screen.

paint

public void paint(java.awt.Graphics g)
Paints the control panel.

Parameters:
g - the graphics context of the video player.

setMute

public void setMute(boolean mute)
Sets the mute value.

Parameters:
mute - the mute value.

getMute

public boolean getMute()
Gets mute value.

Returns:
the mute value.

play

public void play()
Implements "play" action of the control panel.


stop

public void stop()
Implements "stop" action of the control panel.


endPlay

public void endPlay()
Implements "end play" action of the control panel.


pause

public void pause()
Implements "pause" action of the control panel.


disablePanel

public void disablePanel()
Implements "disable" action of the control panel.