com.openpcl.pclrenderimage.macro
Class PriParseMacroBytes

java.lang.Object
  extended by com.openpcl.pclrenderimage.macro.PriParseMacroBytes

public class PriParseMacroBytes
extends Object

Parse Macro Bytes

Author:
howard 7/18/2006

Field Summary
protected  int mCurrentMacroId
           
protected  boolean mCurrentMacroIsTemporary
           
protected  boolean mIsInMacroDefinitionMode
           
protected  Hashtable<Integer,PriExecutableMacro> mMacroStoreHashtable
           
protected  PclParser mPclParser
           
protected  PclRenderImage mPclRenderImage
           
protected  int mStartPosOfMacro
           
static int sMAX_MACRO_ID_NUM
           
static int sMIN_MACRO_ID_NUM
           
 
Constructor Summary
PriParseMacroBytes(PclRenderImage pPclRenderImage)
          Constructor
 
Method Summary
 void deleteAllMacros()
          Delete all macros
 void deleteAllTemporaryMacros()
          Delete all temporary macros
 void deleteLastIdMacro()
          Delete last ID macro
 void disableAutomaticOverlay()
          Disable automatic overlay
 void executeMacro()
          Execute macro
 void freeUpMemory()
          When the user is done with this rendering session, then free up memory
 int getCurrentMacroId()
           
 boolean getIsInMacroDefinitionMode()
           
 Hashtable<Integer,PriExecutableMacro> getMacroStoreHashtable()
           
 void makeMacroPermanent()
          Make macro permanent
 void makeMacroTemporary()
          Make macro temporary
 void saveFullStateThenCallMacro()
          Save full state then call macro (different from execute macro)
 void saveFullStateThenOverlayMacro()
          Save full state then call macro (different from execute macro)
 void setCurrentMacroId(int pCurrentMacroId)
          Set current macro ID
 void setIsInMacroDefinitionMode(boolean pIsInMacroDefinitionMode)
           
 void setMacroStoreHashtable(Hashtable<Integer,PriExecutableMacro> pMacroStoreHashtable)
           
 void setToInitialValues()
          Set to initial values
 void startMacroDefinition(int pStartPosOfMacro)
          Start macro definition
 void stopMacroDefinition(int pEndPosOfMacro, byte[] pParsePclByteArray)
          Stop macro definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPclRenderImage

protected PclRenderImage mPclRenderImage

mCurrentMacroId

protected int mCurrentMacroId

mCurrentMacroIsTemporary

protected boolean mCurrentMacroIsTemporary

mIsInMacroDefinitionMode

protected boolean mIsInMacroDefinitionMode

mStartPosOfMacro

protected int mStartPosOfMacro

mMacroStoreHashtable

protected Hashtable<Integer,PriExecutableMacro> mMacroStoreHashtable

mPclParser

protected PclParser mPclParser

sMIN_MACRO_ID_NUM

public static final int sMIN_MACRO_ID_NUM
See Also:
Constant Field Values

sMAX_MACRO_ID_NUM

public static final int sMAX_MACRO_ID_NUM
See Also:
Constant Field Values
Constructor Detail

PriParseMacroBytes

public PriParseMacroBytes(PclRenderImage pPclRenderImage)
Constructor

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


setCurrentMacroId

public void setCurrentMacroId(int pCurrentMacroId)
Set current macro ID

Parameters:
pCurrentMacroId -

startMacroDefinition

public void startMacroDefinition(int pStartPosOfMacro)
Start macro definition

Parameters:
pStartPosOfMacro -

stopMacroDefinition

public void stopMacroDefinition(int pEndPosOfMacro,
                                byte[] pParsePclByteArray)
Stop macro definition

Parameters:
pEndPosOfMacro -
pParsePclByteArray -

executeMacro

public void executeMacro()
Execute macro


saveFullStateThenCallMacro

public void saveFullStateThenCallMacro()
Save full state then call macro (different from execute macro)


saveFullStateThenOverlayMacro

public void saveFullStateThenOverlayMacro()
Save full state then call macro (different from execute macro)


disableAutomaticOverlay

public void disableAutomaticOverlay()
Disable automatic overlay


deleteAllMacros

public void deleteAllMacros()
Delete all macros


deleteAllTemporaryMacros

public void deleteAllTemporaryMacros()
Delete all temporary macros


deleteLastIdMacro

public void deleteLastIdMacro()
Delete last ID macro


makeMacroTemporary

public void makeMacroTemporary()
Make macro temporary


makeMacroPermanent

public void makeMacroPermanent()
Make macro permanent


getCurrentMacroId

public int getCurrentMacroId()

getIsInMacroDefinitionMode

public boolean getIsInMacroDefinitionMode()

getMacroStoreHashtable

public Hashtable<Integer,PriExecutableMacro> getMacroStoreHashtable()

setIsInMacroDefinitionMode

public void setIsInMacroDefinitionMode(boolean pIsInMacroDefinitionMode)

setMacroStoreHashtable

public void setMacroStoreHashtable(Hashtable<Integer,PriExecutableMacro> pMacroStoreHashtable)


OpenPCL http://www.openpcl.com