|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.graphics.typography.GlyphSetFactoryFactory
public class GlyphSetFactoryFactory
Use Java reflection to load a concrete GlyphSetFactory based on information held in a Properties object.
| Field Summary | |
|---|---|
static String |
FONT_DIRECTORY
Font files (glyph bitmaps) and their associated configuration file ('.conf' files) must be in the fonts directory, which has the relative pathname '/./../fonts/'. |
| Constructor Summary | |
|---|---|
GlyphSetFactoryFactory()
Constructs a TextLabelFactory. |
|
| Method Summary | |
|---|---|
GlyphSetFactory |
createGlyphSetFactory(String factoryName,
String configName)
Uses Java reflection to load the concrete GlyphSetFactory that is requested in the configuration file. |
Properties |
readConfigFile(String configName)
Reads the config file and stores its key-value pairs in a Properties object, which is a type of hash. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FONT_DIRECTORY
| Constructor Detail |
|---|
public GlyphSetFactoryFactory()
| Method Detail |
|---|
public GlyphSetFactory createGlyphSetFactory(String factoryName,
String configName)
throws GlyphConfigException
factoryName - the name of the GlyphSetFactory to load.configName - the name of the configuration file.
GlyphConfigException - if an error occurs while trying to
obtain the factory.
public Properties readConfigFile(String configName)
throws GlyphConfigException
configName - the name of the configuration file to read.
GlyphConfigException - if an error occurs while trying to
read the config file into the hash.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||