com.openpcl.pclrenderimage.render
Class PriRectDrawing

java.lang.Object
  extended by com.openpcl.pclrenderimage.render.PriRectDrawing
All Implemented Interfaces:
IPluginHooksPriRectDrawing

public class PriRectDrawing
extends Object
implements IPluginHooksPriRectDrawing

All the Rectangle drawing

Author:
howard 5/18/2006

Field Summary
protected  int mCurrentHeightForRectangleDraws
           
protected  int mCurrentRectangleFillMode
           
protected  int mCurrentWidthForRectangleDraws
           
protected  Graphics2D mGraphics2D
           
protected  int mPatternIdAreaFill
           
protected  PclRenderImage mPclRenderImage
           
protected  GradientPaint mRedAndBlueCycleColor
           
protected static Color sGrayScale02PctColor
           
protected static Color sGrayScale10PctColor
           
protected static Color sGrayScale20PctColor
           
protected static Color sGrayScale35PctColor
           
protected static Color sGrayScale55PctColor
           
protected static Color sGrayScale80PctColor
           
protected static Color sGrayScale90PctColor
           
protected static Color sGrayScaleBlackColor
           
protected static Color sGrayScaleWhiteColor
           
protected static int sRectangleFillModeBlack
           
protected static int sRectangleFillModeGrayScaleShaded
           
protected static int sRectangleFillModeWhite
           
 
Constructor Summary
PriRectDrawing(PclRenderImage pPclRenderImage)
          Constructor without passing the Graphics2D.
PriRectDrawing(PclRenderImage pPclRenderImage, Graphics2D pGraphics2D)
          Constructor
 
Method Summary
 void drawRectangleCommand(int pMode)
          Draw Rectangle.
protected  boolean dsiSignatureBlock(String pDsiCmdString)
          The DSI signature block.
 boolean dsiZcommand(String pDsiCmdString)
          Process a DSI Z command
 void freeUpMemory()
          When the user is done with this rendering session, then free up memory Subclass plugins override this method so do not delete or rename this method.
 void setPatternIdAreaFill(int pPatternId)
          Set Pattern ID area fill
 void setPclUnitsHeight(int pHeight)
          Set Pcl units height
 void setPclUnitsWidth(int pWidth)
          Set Pcl units width
 void setToInitialValues()
          Set to initial values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPclRenderImage

protected PclRenderImage mPclRenderImage

mGraphics2D

protected Graphics2D mGraphics2D

sRectangleFillModeBlack

protected static final int sRectangleFillModeBlack
See Also:
Constant Field Values

sRectangleFillModeWhite

protected static final int sRectangleFillModeWhite
See Also:
Constant Field Values

sRectangleFillModeGrayScaleShaded

protected static final int sRectangleFillModeGrayScaleShaded
See Also:
Constant Field Values

mCurrentRectangleFillMode

protected int mCurrentRectangleFillMode

mPatternIdAreaFill

protected int mPatternIdAreaFill

sGrayScaleWhiteColor

protected static final Color sGrayScaleWhiteColor

sGrayScale02PctColor

protected static final Color sGrayScale02PctColor

sGrayScale10PctColor

protected static final Color sGrayScale10PctColor

sGrayScale20PctColor

protected static final Color sGrayScale20PctColor

sGrayScale35PctColor

protected static final Color sGrayScale35PctColor

sGrayScale55PctColor

protected static final Color sGrayScale55PctColor

sGrayScale80PctColor

protected static final Color sGrayScale80PctColor

sGrayScale90PctColor

protected static final Color sGrayScale90PctColor

sGrayScaleBlackColor

protected static final Color sGrayScaleBlackColor

mRedAndBlueCycleColor

protected GradientPaint mRedAndBlueCycleColor

mCurrentWidthForRectangleDraws

protected int mCurrentWidthForRectangleDraws

mCurrentHeightForRectangleDraws

protected int mCurrentHeightForRectangleDraws
Constructor Detail

PriRectDrawing

public PriRectDrawing(PclRenderImage pPclRenderImage,
                      Graphics2D pGraphics2D)
Constructor


PriRectDrawing

public PriRectDrawing(PclRenderImage pPclRenderImage)
Constructor without passing the Graphics2D. Needed for subclasses that don't use the Graphics2D, so don't delete or change this constructor.

Parameters:
pPclRenderImage -
Method Detail

setToInitialValues

public void setToInitialValues()
Set to initial values. Subclass plugins override this method so do not delete or rename this method.

Specified by:
setToInitialValues in interface IPluginHooksPriRectDrawing

freeUpMemory

public void freeUpMemory()
When the user is done with this rendering session, then free up memory Subclass plugins override this method so do not delete or rename this method.

Specified by:
freeUpMemory in interface IPluginHooksPriRectDrawing

setPclUnitsWidth

public void setPclUnitsWidth(int pWidth)
Set Pcl units width

Parameters:
pWidth -

setPclUnitsHeight

public void setPclUnitsHeight(int pHeight)
Set Pcl units height

Parameters:
pHeight -

drawRectangleCommand

public void drawRectangleCommand(int pMode)
Draw Rectangle. Subclass plugins override this method so do not delete or rename this method.

Specified by:
drawRectangleCommand in interface IPluginHooksPriRectDrawing
Parameters:
pMode -

setPatternIdAreaFill

public void setPatternIdAreaFill(int pPatternId)
Set Pattern ID area fill

Parameters:
pPatternId -

dsiZcommand

public boolean dsiZcommand(String pDsiCmdString)
Process a DSI Z command

Parameters:
pDsiCmdString -
Returns:
boolean

dsiSignatureBlock

protected boolean dsiSignatureBlock(String pDsiCmdString)
The DSI signature block. This is a box on the screen showing where someone needs to sign their name. When printed out on paper, the signature block box is supressed and isn't there on the printout paper

Parameters:
pDsiCmdString -
Returns:
boolean


OpenPCL http://www.openpcl.com