de.esw.eengine.resource.codec
Class FontCodec
java.lang.Object
de.esw.eengine.resource.codec.AbstractCodec
de.esw.eengine.resource.codec.FontCodec
- All Implemented Interfaces:
- ICodec
public class FontCodec
- extends AbstractCodec
- Since:
- 1.0
- Version:
- $Id: FontCodec.java 209 2005-07-23 00:39:50Z markusw $
- Author:
- markusw
|
Method Summary |
IResource |
createResource(int id,
java.net.URL location)
|
java.lang.Object |
decode(java.net.URL location)
|
void |
dispose()
Disposes this codec and all resources. |
void |
encode(java.lang.Object object,
java.net.URL location)
|
java.awt.image.BufferedImage |
getFontImage(java.net.URL location)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontCodec
public FontCodec()
createResource
public IResource createResource(int id,
java.net.URL location)
- Parameters:
id - Resource id to attachlocation - Location of the IResource to handle
- Returns:
IResource instance or null- See Also:
ICodec.createResource(int, java.net.URL)
encode
public void encode(java.lang.Object object,
java.net.URL location)
- Parameters:
object - Data object to encodelocation - Location to store data at- See Also:
ICodec.encode(java.lang.Object, java.net.URL)
decode
public java.lang.Object decode(java.net.URL location)
throws EEngineException
- Parameters:
location - IResource to decode
- Returns:
- Resource data decoded
- Throws:
EEngineException - Thrown on I/O errors during decode- See Also:
ICodec.decode(java.net.URL)
getFontImage
public java.awt.image.BufferedImage getFontImage(java.net.URL location)
throws EEngineException
- Parameters:
location - Location of the Font image file
- Returns:
- BufferedImage resource for this
Font
- Throws:
EEngineException - Thrown if the image could not be found
dispose
public void dispose()
- Description copied from interface:
ICodec
- Disposes this codec and all resources.
- See Also:
ICodec.dispose()