|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.slurm.gf.GFParserCallback | +--com.slurm.gf.GF2GIFCallback
Set of callback functions to create GIF images of characters as they are encountered while parsing a generic font file.
Constructor Summary | |
GF2GIFCallback()
|
|
GF2GIFCallback(java.awt.Color foreground,
java.awt.Color background)
|
|
GF2GIFCallback(java.awt.Color foreground,
java.awt.Color background,
boolean hasTransparent)
|
|
GF2GIFCallback(java.awt.Color foreground,
java.awt.Color background,
boolean hasTransparent,
boolean transparentBackground)
|
|
GF2GIFCallback(java.awt.Color foreground,
java.awt.Color background,
boolean hasTransparent,
boolean transparentBackground,
int minHeight,
int maxHeight,
java.lang.String filePrefix,
java.lang.String targetDirectory)
Creates a new GF2GIFCallback. |
|
GF2GIFCallback(java.awt.Color foreground,
java.awt.Color background,
boolean hasTransparent,
boolean transparentBackground,
java.lang.String filePrefix,
java.lang.String targetDirectory)
|
Method Summary | |
void |
badGF(java.lang.String msg)
respond to an error from which the parser cannot recover |
void |
error(int label,
java.lang.String s)
respond to an error encountered during parsing |
int |
getTotalChars()
|
void |
handleBOCCommand(BOCCommand boc)
respond to a boc command |
void |
handleCharLocCommand(CharLocCommand c)
respond to a charloc command |
void |
handleEOCCommand(EOCCommand eoc)
respond to an eoc command |
void |
handleNewRowCommand(NewRowCommand newrow)
respond to a newrow command |
void |
handleNoOpCommand(NoOpCommand c)
respond to a noop command |
void |
handlePaintCommand(PaintCommand paint)
respond to a paint command |
void |
handlePostCommand(PostCommand c)
respond to a post command |
void |
handlePostPostCommand(PostPostCommand c)
respond to a postpost command |
void |
handlePreCommand(PreCommand c)
respond to a pre command |
void |
handleSkipCommand(SkipCommand skip)
respond to a skip command |
void |
handleUndefinedCommand(UndefinedCommand c)
respond to an undefined command |
void |
handleXXXCommand(XXXCommand xxx)
respond to an xxx command |
void |
handleYYYCommand(YYYCommand c)
respond to a yyy command |
void |
startSpecialCommands(int loc)
respond to any "special" commands that occur before a character or before the post command |
Methods inherited from class com.slurm.gf.GFParserCallback |
handleCommand |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GF2GIFCallback(java.awt.Color foreground, java.awt.Color background, boolean hasTransparent, boolean transparentBackground, int minHeight, int maxHeight, java.lang.String filePrefix, java.lang.String targetDirectory)
foreground
- the foreground color of the characters in the GIF images.background
- the background color of the characters in the GIF images.hasTransparent
- whether background or foreground should be
transparent.transparentBackground
- whether the transparent color should be the
background color or the foreground color.minHeight
- the lower bound to use for row numbers in the pixel
arrays of characters.maxHeight
- the upper bound to use for row numbers in the pixel
arrays of characters.filePrefix
- the prefix of the resulting GIF output files.targetDirectory
- the directory in which to put the GIF files.public GF2GIFCallback(java.awt.Color foreground, java.awt.Color background, boolean hasTransparent, boolean transparentBackground, java.lang.String filePrefix, java.lang.String targetDirectory)
public GF2GIFCallback(java.awt.Color foreground, java.awt.Color background, boolean hasTransparent, boolean transparentBackground)
public GF2GIFCallback(java.awt.Color foreground, java.awt.Color background, boolean hasTransparent)
public GF2GIFCallback(java.awt.Color foreground, java.awt.Color background)
public GF2GIFCallback()
Method Detail |
public int getTotalChars()
public void badGF(java.lang.String msg) throws GFFileFormatException
public void error(int label, java.lang.String s)
public void startSpecialCommands(int loc)
public void handlePaintCommand(PaintCommand paint)
public void handleBOCCommand(BOCCommand boc)
public void handleEOCCommand(EOCCommand eoc)
public void handleSkipCommand(SkipCommand skip)
public void handleNewRowCommand(NewRowCommand newrow)
public void handleXXXCommand(XXXCommand xxx)
public void handleYYYCommand(YYYCommand c)
public void handleNoOpCommand(NoOpCommand c)
public void handleCharLocCommand(CharLocCommand c)
public void handlePreCommand(PreCommand c)
public void handlePostCommand(PostCommand c)
public void handlePostPostCommand(PostPostCommand c)
public void handleUndefinedCommand(UndefinedCommand c)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |