IBM Toolkit
for MPEG-4

player
Class PlayerControlPanelFactory

java.lang.Object
  extended byplayer.PlayerControlPanelFactory

public class PlayerControlPanelFactory
extends java.lang.Object

MPEG-4 Player Control Panel factory. A Player Control Panel is a 'small' panel containing control buttons such as play, pause, stop plus potentially other indicators and controls for volume, mute. When creating a main player shell these control panels are a convenience as they can be readily used to control common operations such as play, pause etc.


Method Summary
static PlayerControlPanel createPlayerControlPanel(java.lang.String type, PlayerControl pc)
          Create a PlayerControlPanel instance.
static PlayerControlPanel createPlayerControlPanel(java.lang.String type, PlayerControl pc, boolean playInClosed)
          Create a PlayerControlPanel instance.
static java.lang.String[] getControlPanelNames(boolean includeDefault)
          Get a list of PlayerControl panel names that can be instantiated via this factory.
static java.lang.String getDefaultPanelName()
          Indicates the name of the Default control panel.
static int getNumAvailableControlPanels(boolean includeDefault)
          Indicates the number of Control Panels that are available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumAvailableControlPanels

public static int getNumAvailableControlPanels(boolean includeDefault)
Indicates the number of Control Panels that are available.

Parameters:
includeDefault - Whether to include the default panel in the count or not.
Returns:
Number of available control panels

getControlPanelNames

public static java.lang.String[] getControlPanelNames(boolean includeDefault)
Get a list of PlayerControl panel names that can be instantiated via this factory.

Parameters:
includeDefault - If to include "Default" as one of the names. "Default" is the preferred panel from the factory that can always be instantiated - assuming that there is at least one panel available.
Returns:
Array of panel names

getDefaultPanelName

public static java.lang.String getDefaultPanelName()
Indicates the name of the Default control panel. Null if there are no control panels at all.

Returns:
Default control panel name or null if no control panels

createPlayerControlPanel

public static PlayerControlPanel createPlayerControlPanel(java.lang.String type,
                                                          PlayerControl pc)
Create a PlayerControlPanel instance.

Parameters:
type - This is the name of the ControlPanel that is to be instantiated
pc - This is an instance of the PlayerControl that the Panel will be using to stop, start etc.
Returns:
An instantiated player control if the named type exists, otherwise null is returned

createPlayerControlPanel

public static PlayerControlPanel createPlayerControlPanel(java.lang.String type,
                                                          PlayerControl pc,
                                                          boolean playInClosed)
Create a PlayerControlPanel instance.

Parameters:
type - This is the name of the ControlPanel that is to be instantiated
pc - This is an instance of the PlayerControl that the Panel will be using to stop, start etc.
playInClosed - Set to true to enable play button in closed state
Returns:
An instantiated player control if the named type exists, otherwise null is returned

IBM Toolkit
for MPEG-4

© Copyright IBM Corp. 1998, 2005. All Rights Reserved.