|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.FontFactory
public final class FontFactory
ImageFactory is used to generate an image definition object from an image stored in a file, references by a URL or read from an stream. An plug-in architecture allows decoders to be registered to handle different image formats. The ImageFactory provides a standard interface for using the decoders.
| Constructor Summary | |
|---|---|
FontFactory()
|
|
| Method Summary | |
|---|---|
List<Font> |
getFonts()
Get the list of fonts decoded. |
void |
read(File file)
Read a font stored in the specified file. |
void |
read(URL url)
Read a font referenced by a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontFactory()
| Method Detail |
|---|
public void read(File file)
throws IOException,
DataFormatException
file - a file containing the abstract path to the font.
IOException - if there is an error reading the file.
DataFormatException - if there is a problem decoding the font, either it is in an
unsupported format or an error occurred while decoding the
data.
public void read(URL url)
throws IOException,
DataFormatException
url - the Uniform Resource Locator referencing the file.
IOException - if there is an error reading the file.
DataFormatException - if there is a problem decoding the font, either it is in an
unsupported format or an error occurred while decoding the
font data.public List<Font> getFonts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||