com.openpcl.pclrenderimage.softfont
Class PriParseSoftFontBytes

java.lang.Object
  extended by com.openpcl.pclrenderimage.softfont.PriParseSoftFontBytes

public class PriParseSoftFontBytes
extends Object

Parse Soft Font PCL command bytes using: PriFontDownloader, PriBitmapFontDownloader, PriFontHeaderFactory, PriFontHeader, PriBitmapFontHeader, PriFontBase, PriBitmapFont into classes: PriPclContext, PriFontManager, Hashtable softfonts, PriBitmapCharacter, Hashtable characters

Author:
howard 7/14/06

Field Summary
protected  PriFontDownloader mPriFontDownloader
           
protected  PriPclContext mPriPclContext
           
static int sFONTCONTROL_ASSIGN_CURRENTLY_INVOKED_SOFTFONT_AS_TEMPORARY
           
static int sFONTCONTROL_DELETE_ALL_SOFTFONTS
           
static int sFONTCONTROL_DELETE_ALL_TEMPORARY_SOFTFONTS
           
static int sFONTCONTROL_DELETE_LAST_SOFTFONT_CHARACTER_SPECIFIED
           
static int sFONTCONTROL_DELETE_LAST_SOFTFONT_ID_SPECIFIED
           
static int sFONTCONTROL_MAKE_SOFTFONT_PERMANENT
           
static int sFONTCONTROL_MAKE_SOFTFONT_TEMPORARY
           
static int sMAX_FONT_ID
           
static int sMIN_FONT_ID
           
 
Constructor Summary
PriParseSoftFontBytes()
           
 
Method Summary
 void assignSoftFontId(int pSoftFontIdNumber)
          Assign soft font ID
 void fontControlForSoftFonts(int pFontControlCommand)
          Handle soft font command from PCL bytes.
 void freeUpMemory()
          When the user is done with this rendering session, then free up memory
 PriPclContext getPclContext()
          Get Pcl context
 void selectSoftFontById(int pSoftFontIdNumber)
          Select soft font by ID
 void setCharCodeForNextCharDownload(int pCharCodeForNextCharDownload)
          Set character code for the next char download on PriFontDownloader
 void setToInitialValues()
          Set to initial values
 void transferSoftFontHeaderData(int pNumBytes, byte[] pHeaderDataByteArray)
          Transfer soft font header data
 void transferSoftFontPerCharacterData(int pNumBytes, byte[] pPerCharDataByteArray)
          Set the byte array of the soft font char data into the PriFontDownloader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sFONTCONTROL_DELETE_ALL_SOFTFONTS

public static final int sFONTCONTROL_DELETE_ALL_SOFTFONTS
See Also:
Constant Field Values

sFONTCONTROL_DELETE_ALL_TEMPORARY_SOFTFONTS

public static final int sFONTCONTROL_DELETE_ALL_TEMPORARY_SOFTFONTS
See Also:
Constant Field Values

sFONTCONTROL_DELETE_LAST_SOFTFONT_ID_SPECIFIED

public static final int sFONTCONTROL_DELETE_LAST_SOFTFONT_ID_SPECIFIED
See Also:
Constant Field Values

sFONTCONTROL_DELETE_LAST_SOFTFONT_CHARACTER_SPECIFIED

public static final int sFONTCONTROL_DELETE_LAST_SOFTFONT_CHARACTER_SPECIFIED
See Also:
Constant Field Values

sFONTCONTROL_MAKE_SOFTFONT_TEMPORARY

public static final int sFONTCONTROL_MAKE_SOFTFONT_TEMPORARY
See Also:
Constant Field Values

sFONTCONTROL_MAKE_SOFTFONT_PERMANENT

public static final int sFONTCONTROL_MAKE_SOFTFONT_PERMANENT
See Also:
Constant Field Values

sFONTCONTROL_ASSIGN_CURRENTLY_INVOKED_SOFTFONT_AS_TEMPORARY

public static final int sFONTCONTROL_ASSIGN_CURRENTLY_INVOKED_SOFTFONT_AS_TEMPORARY
See Also:
Constant Field Values

sMIN_FONT_ID

public static final int sMIN_FONT_ID
See Also:
Constant Field Values

sMAX_FONT_ID

public static final int sMAX_FONT_ID
See Also:
Constant Field Values

mPriPclContext

protected PriPclContext mPriPclContext

mPriFontDownloader

protected PriFontDownloader mPriFontDownloader
Constructor Detail

PriParseSoftFontBytes

public PriParseSoftFontBytes()
Method Detail

setToInitialValues

public void setToInitialValues()
Set to initial values


freeUpMemory

public void freeUpMemory()
When the user is done with this rendering session, then free up memory


getPclContext

public PriPclContext getPclContext()
Get Pcl context

Returns:
PriPclContect

selectSoftFontById

public void selectSoftFontById(int pSoftFontIdNumber)
Select soft font by ID

Parameters:
pSoftFontIdNumber -

assignSoftFontId

public void assignSoftFontId(int pSoftFontIdNumber)
Assign soft font ID

Parameters:
pSoftFontIdNumber -

fontControlForSoftFonts

public void fontControlForSoftFonts(int pFontControlCommand)
Handle soft font command from PCL bytes. See below code for possible values passed and actions to be performed.

Parameters:
pFontControlCommand -

transferSoftFontHeaderData

public void transferSoftFontHeaderData(int pNumBytes,
                                       byte[] pHeaderDataByteArray)
Transfer soft font header data

Parameters:
pNumBytes -
pHeaderDataByteArray -

setCharCodeForNextCharDownload

public void setCharCodeForNextCharDownload(int pCharCodeForNextCharDownload)
Set character code for the next char download on PriFontDownloader

Parameters:
pCharCodeForNextCharDownload -

transferSoftFontPerCharacterData

public void transferSoftFontPerCharacterData(int pNumBytes,
                                             byte[] pPerCharDataByteArray)
Set the byte array of the soft font char data into the PriFontDownloader

Parameters:
pNumBytes -
pPerCharDataByteArray -


OpenPCL http://www.openpcl.com