|
||||||||
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.GFTypeCallback
This implemenation of GFParserCallback responds to generic font commands in such a way as to reproduce the behavior of the original gftype program.
Constructor Summary | |
GFTypeCallback(boolean mnemonics,
boolean pixels)
Creates a GFTypeCallback object with the specified choice of output. |
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 charLoc)
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 noop)
respond to a noop command |
void |
handlePaintCommand(PaintCommand paint)
respond to a paint command |
void |
handlePostCommand(PostCommand post)
respond to a post command |
void |
handlePostPostCommand(PostPostCommand postpost)
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 yyy)
respond to a yyy command |
void |
nlError(Command c,
java.lang.String s)
|
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 GFTypeCallback(boolean mnemonics, boolean pixels)
mnemonics
- whether or not mnemonic output is desiredpixels
- whether or not pixel output is desiredMethod Detail |
public void badGF(java.lang.String msg) throws GFFileFormatException
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 yyy)
public void handleNoOpCommand(NoOpCommand noop)
public void handleCharLocCommand(CharLocCommand charLoc)
public void handlePreCommand(PreCommand c)
public void handlePostCommand(PostCommand post)
public void handlePostPostCommand(PostPostCommand postpost)
public void handleUndefinedCommand(UndefinedCommand c)
public int getTotalChars()
public void error(int label, java.lang.String s)
public void nlError(Command c, java.lang.String s)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |