com.openpcl.pclrenderimage.render
Class PriPageSettings

java.lang.Object
  extended by com.openpcl.pclrenderimage.render.PriPageSettings

public class PriPageSettings
extends Object

Page Settings.

Author:
howard 5/17/2006

Field Summary
protected  int mCurrentPaperSize
           
protected  int mDuplexMode
           
protected  int mLeftMarginPixelOffset
           
protected  float mLinesPerInch
           
protected  int mPrintPatternMode
           
protected  int mTopMarginPixelOffset
           
static int sDefaultPaperSize
           
static int sDuplexOff
           
static int sDuplexOnLongEdge
           
static int sDuplexOnShortEdge
           
static int sNumPixels11Inches
           
static int sNumPixels14Inches
           
static int sNumPixels85Inches
           
static int sPaperSizeA3
           
static int sPaperSizeA4
           
static int sPaperSizeExecutive
           
static int sPaperSizeLedger
           
static int sPaperSizeLegal
           
static int sPaperSizeLetter
           
static int sPrintDotsPerInch
           
static int sPrintPatternModeBlack
           
static int sPrintPatternModeWhite
           
 
Constructor Summary
PriPageSettings()
          Constructor
 
Method Summary
 void freeUpMemory()
          When the user is done with this rendering session, then free up memory
 int getCurrentPaperSize()
          get Current Paper Size
 int getDuplexMode()
          get Duplex Mode number
 boolean getIsDuplexMode()
          Returns true if the duplex command was in the PCL bytes.
 int getLeftMarginPixelOffset()
          get Left Margin Pixel Offset
 float getLinesPerInch()
          get Lines Per Inch
 int getNumPixelsPerLine()
          get Num Pixels Per Line
 int getPrintPatternMode()
          get Print Pattern Mode
 int getTopMarginPixelOffset()
          get Top Margin Pixel Offset
 void setDuplexMode(int pDuplexMode)
          Set the duplex mode.
 void setLineSpacing(int pSpacing)
          Set LineSpacing
 void setPaperSize(int pPaperSize)
          Set Paper Size
 void setPrintPattern(int pPattern)
          set PrintPattern
 void setToInitialValues()
          Set to initial values
 void setTopMarginAdjustment(int pTopMarginLogicalLines)
          Set TopMarginAdjustment
 void setUnitOfMeasure(int pPclSourceFiledotsPerInch)
          Set UnitOfMeasure
 void setVerticalMotionIndex(int pVmi)
          Set VerticalMotionIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTopMarginPixelOffset

protected int mTopMarginPixelOffset

mLeftMarginPixelOffset

protected int mLeftMarginPixelOffset

mLinesPerInch

protected float mLinesPerInch

sPrintDotsPerInch

public static final int sPrintDotsPerInch
See Also:
Constant Field Values

sNumPixels85Inches

public static final int sNumPixels85Inches
See Also:
Constant Field Values

sNumPixels11Inches

public static final int sNumPixels11Inches
See Also:
Constant Field Values

sNumPixels14Inches

public static final int sNumPixels14Inches
See Also:
Constant Field Values

sPrintPatternModeBlack

public static final int sPrintPatternModeBlack
See Also:
Constant Field Values

sPrintPatternModeWhite

public static final int sPrintPatternModeWhite
See Also:
Constant Field Values

mPrintPatternMode

protected int mPrintPatternMode

sPaperSizeExecutive

public static final int sPaperSizeExecutive
See Also:
Constant Field Values

sPaperSizeLetter

public static final int sPaperSizeLetter
See Also:
Constant Field Values

sPaperSizeLegal

public static final int sPaperSizeLegal
See Also:
Constant Field Values

sPaperSizeLedger

public static final int sPaperSizeLedger
See Also:
Constant Field Values

sPaperSizeA4

public static final int sPaperSizeA4
See Also:
Constant Field Values

sPaperSizeA3

public static final int sPaperSizeA3
See Also:
Constant Field Values

sDefaultPaperSize

public static final int sDefaultPaperSize
See Also:
Constant Field Values

mCurrentPaperSize

protected int mCurrentPaperSize

sDuplexOff

public static final int sDuplexOff
See Also:
Constant Field Values

sDuplexOnLongEdge

public static final int sDuplexOnLongEdge
See Also:
Constant Field Values

sDuplexOnShortEdge

public static final int sDuplexOnShortEdge
See Also:
Constant Field Values

mDuplexMode

protected int mDuplexMode
Constructor Detail

PriPageSettings

public PriPageSettings()
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


setVerticalMotionIndex

public void setVerticalMotionIndex(int pVmi)
Set VerticalMotionIndex

Parameters:
pVmi -

setLineSpacing

public void setLineSpacing(int pSpacing)
Set LineSpacing

Parameters:
pSpacing -

setTopMarginAdjustment

public void setTopMarginAdjustment(int pTopMarginLogicalLines)
Set TopMarginAdjustment

Parameters:
pTopMarginLogicalLines -

setUnitOfMeasure

public void setUnitOfMeasure(int pPclSourceFiledotsPerInch)
Set UnitOfMeasure

Parameters:
pPclSourceFiledotsPerInch -

setPaperSize

public void setPaperSize(int pPaperSize)
Set Paper Size

Parameters:
pPaperSize -

setDuplexMode

public void setDuplexMode(int pDuplexMode)
Set the duplex mode.

Parameters:
pDuplexMode - 0 is Duplex off (Simplex) 1 is Duplex on long edge of paper 2 is Duplex on short edge of paper

setPrintPattern

public void setPrintPattern(int pPattern)
set PrintPattern

Parameters:
pPattern -

getLinesPerInch

public float getLinesPerInch()
get Lines Per Inch


getNumPixelsPerLine

public int getNumPixelsPerLine()
get Num Pixels Per Line


getTopMarginPixelOffset

public int getTopMarginPixelOffset()
get Top Margin Pixel Offset


getLeftMarginPixelOffset

public int getLeftMarginPixelOffset()
get Left Margin Pixel Offset


getPrintPatternMode

public int getPrintPatternMode()
get Print Pattern Mode


getCurrentPaperSize

public int getCurrentPaperSize()
get Current Paper Size


getDuplexMode

public int getDuplexMode()
get Duplex Mode number


getIsDuplexMode

public boolean getIsDuplexMode()
Returns true if the duplex command was in the PCL bytes. ESC & l # S

Returns:
boolean


OpenPCL http://www.openpcl.com