com.openpcl.pclrenderimage.render
Class PriCursorPos

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

public class PriCursorPos
extends Object

All the Cursor positioning

Author:
howard 5/16/2006

Field Summary
protected  PclRenderImage mPclRenderImage
           
protected  int mXpos
          The current X and Y drawing position
protected  int mYpos
           
 
Constructor Summary
PriCursorPos(PclRenderImage pPclRenderImage)
          Constructor
 
Method Summary
 void absoluteXPosition(int xPos)
          The absolute X position command.
 void absoluteYPosition(int yPos)
          The absolute Y position command.
 void freeUpMemory()
          When the user is done with this rendering session, then free up memory
 int getXpos()
          Get X position
 int getYpos()
          Get Y position
 int getYposAt100PctZoom()
          Get Y position at 100 percent zoom
 int getYposWithoutTopMarginAdjustment()
          Get Y position without top margin adjustment
 void relativeXPosition(int xPos)
          The relative X position command.
 void relativeYByNumberOfRows(String pNumRowsToMoveString)
          The number of Y pixels to the next or previous row is defined as the number of dots per inch divided by the number of lines per inch.
 void relativeYPosition(int yPos)
          The relative Y position command.
 void setToInitialValues()
          Set to initial values
 void xPositionCommand(String pCmdValue)
          The X position command.
 void yPositionCommand(String pCmdValue)
          The Y position command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPclRenderImage

protected PclRenderImage mPclRenderImage

mXpos

protected int mXpos
The current X and Y drawing position


mYpos

protected int mYpos
Constructor Detail

PriCursorPos

public PriCursorPos(PclRenderImage pPclRenderImage)
Constructor

Parameters:
Application - mainApp
BufferedImage - viewBufferedImage
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


getXpos

public int getXpos()
Get X position


getYpos

public int getYpos()
Get Y position


getYposWithoutTopMarginAdjustment

public int getYposWithoutTopMarginAdjustment()
Get Y position without top margin adjustment


getYposAt100PctZoom

public int getYposAt100PctZoom()
Get Y position at 100 percent zoom


xPositionCommand

public void xPositionCommand(String pCmdValue)
The X position command. Can be an absolute or a realative. Position the drawing point at this X


yPositionCommand

public void yPositionCommand(String pCmdValue)
The Y position command. Can be an absolute or a realative. Position the drawing point at this Y


absoluteXPosition

public void absoluteXPosition(int xPos)
The absolute X position command. Position the drawing point at this X


absoluteYPosition

public void absoluteYPosition(int yPos)
The absolute Y position command. Position the drawing point at this Y


relativeXPosition

public void relativeXPosition(int xPos)
The relative X position command. Position the drawing point at + X


relativeYPosition

public void relativeYPosition(int yPos)
The relative Y position command. Position the drawing point at + Y


relativeYByNumberOfRows

public void relativeYByNumberOfRows(String pNumRowsToMoveString)
The number of Y pixels to the next or previous row is defined as the number of dots per inch divided by the number of lines per inch. Example: 300 dpi and 6 lines per inch vertical is the usual setting , so each row is 300 / 6 = 50 Y pixels

Parameters:
pNumRowsToMoveString -


OpenPCL http://www.openpcl.com