com.hdcookbook.grin.fontstrip
Class FontDesignImage

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

public class FontDesignImage
extends java.lang.Object

Represents intermediate font image file that the designer can possibly edit.


Constructor Summary
FontDesignImage(FontDescription description, int width, int height)
           
 
Method Summary
 void discardCurrentImage()
           
 void setCharactorArray(char[] chars)
           
 void setColors(java.awt.Color backgroundColor, java.awt.Color pixRectColor, java.awt.Color guidelineColor, java.awt.Color fontColor)
           
 void setFont(java.awt.Font font)
           
 void setOutputFile(java.io.File outputFile)
           
 void setWhitespace(int pixels)
           
 void writeOutImageFile()
          Writes out the content of the BufferedImage to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontDesignImage

public FontDesignImage(FontDescription description,
                       int width,
                       int height)
Method Detail

setColors

public void setColors(java.awt.Color backgroundColor,
                      java.awt.Color pixRectColor,
                      java.awt.Color guidelineColor,
                      java.awt.Color fontColor)

setWhitespace

public void setWhitespace(int pixels)

setFont

public void setFont(java.awt.Font font)

setOutputFile

public void setOutputFile(java.io.File outputFile)

setCharactorArray

public void setCharactorArray(char[] chars)

writeOutImageFile

public void writeOutImageFile()
                       throws java.io.IOException
Writes out the content of the BufferedImage to a file.

Throws:
java.io.IOException

discardCurrentImage

public void discardCurrentImage()