Revision: 118
http://openpcl.svn.sourceforge.net/openpcl/?rev=118&view=rev
Author: documentsystems
Date: 2007-07-25 12:49:33 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
Howard Hoagland. In PosTreeNode, added byte[] mPrintTimePclBytes to implement "Print Form Names" on the print setup dialog, that is the extra PCL bytes to send to the printer for print "PCL Direct" or to draw on the bitmap for "Windows Print".
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/tree/PosTreeNode.java
Modified: openpcl/src/com/openpcl/viewer/tree/PosTreeNode.java
===================================================================
--- openpcl/src/com/openpcl/viewer/tree/PosTreeNode.java 2007-07-25 19:45:22 UTC (rev 117)
+++ openpcl/src/com/openpcl/viewer/tree/PosTreeNode.java 2007-07-25 19:49:33 UTC (rev 118)
@@ -22,6 +22,11 @@
// For tree nodes that are pages in a PCL file
private byte[] mPclBytes = null;
+
+ // At print time, draw these additional PCL bytes on the print image.
+ // 1. For PCL direct, this will be just send these bytes for the HP LaserJet to draw in the printer.
+ // 2. For Windows Print, this will be to use Graphics2D drawing to draw on the BufferedImage to be sent to the printer
+ private byte[] mPrintTimePclBytes = null;
// For the Root tree node
private String mRootNodeName = null;
@@ -55,11 +60,13 @@
public PriRenderCounters getPrirenderCounters() { return mPriRenderCounters; }
public String getRootNodeName() { return mRootNodeName; }
public byte[] getPclBytes() { return mPclBytes; }
+ public byte[] getPrintTimePclBytes() { return mPrintTimePclBytes; }
// One liner Setters
public void setNodeName(String pNodeName) { mNodeName = pNodeName; }
public void setPaperSize(String pPaperSize) {mPaperSize = pPaperSize; }
public void setPclBytes(byte[] pPclBytes) { mPclBytes = pPclBytes; }
+ public void setPrintTimePclBytes(byte[] pPrintTimePclBytes) { mPrintTimePclBytes = pPrintTimePclBytes; }
public void setRendersToImage(boolean pRendersToImage) { mRendersToImage = pRendersToImage; }
public void setPriRenderCounters(PriRenderCounters pPriRenderCounters) {
mPriRenderCounters = pPriRenderCounters;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|