net.sf.paperclips.internal
Class PrintSizeStrategy

java.lang.Object
  extended by net.sf.paperclips.internal.PrintSizeStrategy

public abstract class PrintSizeStrategy
extends java.lang.Object

The static instance members of this class aid in the calculation of prints and help abstract out the minimum/preferred size concepts to simplify algorithms.


Field Summary
static PrintSizeStrategy MINIMUM
          Compute the minimum size
static PrintSizeStrategy PREFERRED
          Compute the preferred size.
 
Method Summary
abstract  org.eclipse.swt.graphics.Point computeSize(PrintIterator print)
          Computes the size of the PrintIterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM

public static final PrintSizeStrategy MINIMUM
Compute the minimum size


PREFERRED

public static final PrintSizeStrategy PREFERRED
Compute the preferred size.

Method Detail

computeSize

public abstract org.eclipse.swt.graphics.Point computeSize(PrintIterator print)
Computes the size of the PrintIterator.

Parameters:
print - the iterator
Returns:
the computed size of the PrintIterator.