net.sf.paperclips
Class DebugPrint

java.lang.Object
  extended by net.sf.paperclips.DebugPrint
All Implemented Interfaces:
Print

Deprecated. Reminder to remove references to DebugPrint when you're done debugging a print job.

public class DebugPrint
extends java.lang.Object
implements Print

Helper Print for debugging documents which fail to layout. Clients may set breakpoints inside the methods in this class (as well as DebugIterator and DebugPiece), then step into the target object's methods to trace the problem.


Constructor Summary
DebugPrint(Print target)
          Deprecated.  
 
Method Summary
 PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
          Deprecated. Returns a PrintIterator for laying out the contents of this Print.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugPrint

public DebugPrint(Print target)
Deprecated. 
Parameters:
target - the Print object to debug
Method Detail

iterator

public PrintIterator iterator(org.eclipse.swt.graphics.Device device,
                              org.eclipse.swt.graphics.GC gc)
Deprecated. 
Description copied from interface: Print
Returns a PrintIterator for laying out the contents of this Print. The iterator uses a snapshot of the print at the time this method is invoked, so subsequent changes to the Print will not affect the output of the iterator.

Specified by:
iterator in interface Print
Parameters:
device - the graphics device this Print will be drawn onto.
gc - the graphics context to be used for calculating layout and drawing the Print's contents.
Returns:
a PrintIterator for laying out the contents of this Print.