lhmc.utils
Class ConfigReader

java.lang.Object
  extended by lhmc.utils.ConfigReader

public class ConfigReader
extends java.lang.Object

ConfigReader reads the config file and gets it's properties.

Version:
0.01 Jul 2007
Author:
Cristina Roura Claver

Constructor Summary
ConfigReader()
          Constructs ConfigReader.
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Gets the property string from key string.
 java.awt.Color loadColor(java.lang.String colorType)
          Gets the color from a colortype string.
 java.awt.Font loadFont(java.lang.String fontType)
          Gets the font from a fontType string.
 java.util.Enumeration propertyNames()
          Gets an enumeration on key Names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigReader

public ConfigReader()
Constructs ConfigReader.

Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Gets the property string from key string.

Parameters:
key - the key string.
Returns:
the property related to the key.

propertyNames

public java.util.Enumeration propertyNames()
Gets an enumeration on key Names

Returns:
the enumeration of keys.

loadColor

public java.awt.Color loadColor(java.lang.String colorType)
Gets the color from a colortype string.

Parameters:
colorType - the name of the color type to get.
Returns:
the Color required.

loadFont

public java.awt.Font loadFont(java.lang.String fontType)
Gets the font from a fontType string.

Parameters:
fontType - the name of the font type to get.
Returns:
the Font required.