Class Glyph2DFactory
java.lang.Object
|
+--Glyph2DFactory
- public class Glyph2DFactory
- extends java.lang.Object
Glyph2DFactory is a factory-class for instantiating Glyph2D-objects.
It has an interface to list the available Glyphs and instantiate them.
|
Method Summary |
Glyph2D |
getGlyphInstance(int ix)
Gets an instance of a Glyph2D-object given the index of the glyph. |
java.lang.String[] |
getGlyphNames()
|
java.lang.String |
getNameofGlyph(int ix)
Gets the name of one glyph type by it's zero-based index. |
int |
getNumberofGlyphs()
Gets the number of different Glyphs this factory knows about. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Glyph2DFactory
public Glyph2DFactory()
getNumberofGlyphs
public int getNumberofGlyphs()
- Gets the number of different Glyphs this factory knows about.
getNameofGlyph
public java.lang.String getNameofGlyph(int ix)
- Gets the name of one glyph type by it's zero-based index.
getGlyphInstance
public Glyph2D getGlyphInstance(int ix)
- Gets an instance of a Glyph2D-object given the index of the glyph.
getGlyphNames
public java.lang.String[] getGlyphNames()