net.sf.paperclips
Class BreakPrint

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

public class BreakPrint
extends java.lang.Object
implements Print

A print which inserts a page break (or a column break, if inside a ColumnPrint).

This class is horizontally and vertically greedy. Greedy prints take up all the available space on the page.


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

Constructor Detail

BreakPrint

public BreakPrint()
Constructs a BreakPrint.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

iterator

public PrintIterator iterator(org.eclipse.swt.graphics.Device device,
                              org.eclipse.swt.graphics.GC gc)
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.