All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.examples.statechanger.StateChanger

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----com.sun.java.swing.JApplet
                                           |
                                           +----ejmf.toolkit.util.PlayerDriver
                                                   |
                                                   +----ejmf.examples.statechanger.StateChanger

public class StateChanger
extends PlayerDriver
implements ControllerListener, ActionListener

See Also:

Constructor Index

 o StateChanger()

Method Index

 o actionPerformed(ActionEvent)
This function must be defined in order to implement the ActionListener interface.
 o begin()
An abstract method that should be overridden to begin the playback of the media once the GUI layout has taken place.
 o controllerUpdate(ControllerEvent)
This controllerUpdate function must be defined in order to implement a ControllerListener interface.
 o main(String[])
 o setState()
 o setUpBorders()
Overrides PlayerPanel.setUpBorders() to provide custom borders
 o writeEvent(String)
Post an event to the event monitor text area

Constructors

 o StateChanger
 public StateChanger()

Methods

 o main
 public static void main(String args[])
 o begin
 public void begin()
An abstract method that should be overridden to begin the playback of the media once the GUI layout has taken place.

Overrides:
begin in class PlayerDriver
 o setUpBorders
 protected void setUpBorders()
Overrides PlayerPanel.setUpBorders() to provide custom borders

 o actionPerformed
 public void actionPerformed(ActionEvent event)
This function must be defined in order to implement the ActionListener interface. Listens for ActionEvents from the player state buttons, and sets the player state accordingly.

Parameters:
event - the ActionEvent
 o setState
 public void setState()
 o controllerUpdate
 public void controllerUpdate(ControllerEvent event)
This controllerUpdate function must be defined in order to implement a ControllerListener interface. This function will be called whenever there is a media event.

Parameters:
event - the ControllerEvent
 o writeEvent
 public void writeEvent(String event)
Post an event to the event monitor text area

Parameters:
event - the String to post

All Packages  Class Hierarchy  This Package  Previous  Next  Index