com.flagstone.transform.util.font
Class AWTDecoder

java.lang.Object
  extended by com.flagstone.transform.util.font.AWTDecoder

public final class AWTDecoder
extends Object

AWTDecoder decodes Java AWT Fonts so they can be used in a Flash file.


Constructor Summary
AWTDecoder()
           
 
Method Summary
 List<Font> getFonts()
          Get the list of fonts decoded.
 void read(Font font)
          Decode an AWT Font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTDecoder

public AWTDecoder()
Method Detail

read

public void read(Font font)
          throws IOException,
                 DataFormatException
Decode an AWT Font.

Parameters:
font - an AWT Font object.
Throws:
IOException - if an error occurs decoding the font data.
DataFormatException - if the font is in a format not supported by the decoder.

getFonts

public List<Font> getFonts()
Get the list of fonts decoded.

Returns:
a list of fonts.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.