jokey
Class Configurator

java.lang.Object
  |
  +--jokey.Configurator
All Implemented Interfaces:
JokeyProperties

public class Configurator
extends java.lang.Object
implements JokeyProperties

The Configurator gets all configuration information for a Karaoke Player.


Field Summary
 
Fields inherited from interface jokey.JokeyProperties
ANCHORX_DEFAULT, ANCHORX_PROP, ANCHORY_DEFAULT, ANCHORY_PROP, BACKGROUND_DEFAULT, BACKGROUND_PROP, FONT_DEFAULT, FONT_PROP, FONTSIZE_DEFAULT, FONTSIZE_PROP, FONTSTYLE_DEFAULT, FONTSTYLE_PROP, FOREGROUND_DEFAULT, FOREGROUND_PROP, HEIGHT_DEFAULT, HEIGHT_PROP, PROPERTIES_FILE, PROPERTIES_RESOURCE, SWAPCOLOR_DEFAULT, SWAPCOLOR_PROP, WIDTH_DEFAULT, WIDTH_PROP
 
Constructor Summary
Configurator()
           
Configurator(java.util.Properties props)
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
           
static jokey.Configurator GetDefaultConfigurator()
          Get the default Configurator.
static jokey.Configurator getInstance()
           
 jokey.PlayerContext getPlayerContext()
          Create an appropriate PlayerContext from the configuration information.
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String propName)
           
 java.lang.String getProperty(java.lang.String propName, java.lang.String defaultValue)
           
 void put(java.lang.Object key, java.lang.Object val)
           
static void setInstance(jokey.Configurator config)
          If special configuration information comes from a different source, use it here.
 void setProperties(java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator()

Configurator

public Configurator(java.util.Properties props)
Method Detail

getProperties

public java.util.Properties getProperties()

setProperties

public void setProperties(java.util.Properties props)

get

public java.lang.Object get(java.lang.Object key)

put

public void put(java.lang.Object key,
                java.lang.Object val)

getProperty

public java.lang.String getProperty(java.lang.String propName)

getProperty

public java.lang.String getProperty(java.lang.String propName,
                                    java.lang.String defaultValue)

getPlayerContext

public jokey.PlayerContext getPlayerContext()
Create an appropriate PlayerContext from the configuration information.


GetDefaultConfigurator

public static jokey.Configurator GetDefaultConfigurator()
Get the default Configurator.


getInstance

public static jokey.Configurator getInstance()

setInstance

public static void setInstance(jokey.Configurator config)
If special configuration information comes from a different source, use it here.