com.hdcookbook.grin.fontstrip
Class FontImageMosaic

java.lang.Object
  extended by com.hdcookbook.grin.fontstrip.FontImageMosaic

public class FontImageMosaic
extends java.lang.Object

Represents the final font image file used by GRIN at runtime.

This image holds a mosaic of font images gathered from FontDesignImage(s). The image file generated by this class is meant to be loaded onto a disc and used at xlet runtime together with "fontstrp.inf", which is an information file that describes all the font mosaics.


Constructor Summary
FontImageMosaic(int width, int height, double scaleX, double scaleY)
           
 
Method Summary
 void addFontImages(FontDesignImage fontDesignImage)
           
 void setOutputFile(java.io.File outputFile)
           
 void writeOutFiles(java.io.DataOutputStream infoOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontImageMosaic

public FontImageMosaic(int width,
                       int height,
                       double scaleX,
                       double scaleY)
Method Detail

addFontImages

public void addFontImages(FontDesignImage fontDesignImage)
                   throws java.io.IOException
Throws:
java.io.IOException

setOutputFile

public void setOutputFile(java.io.File outputFile)

writeOutFiles

public void writeOutFiles(java.io.DataOutputStream infoOut)
                   throws java.io.IOException
Throws:
java.io.IOException