Package net.sf.paperclips.internal
Class PrintSizeStrategy
java.lang.Object
net.sf.paperclips.internal.PrintSizeStrategy
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
FieldsModifier and TypeFieldDescriptionstatic final PrintSizeStrategy
Compute the minimum sizestatic final PrintSizeStrategy
Compute the preferred size. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.eclipse.swt.graphics.Point
computeSize
(PrintIterator print) Computes the size of the PrintIterator.
-
Field Details
-
MINIMUM
Compute the minimum size -
PREFERRED
Compute the preferred size.
-
-
Method Details
-
computeSize
Computes the size of the PrintIterator.- Parameters:
print
- the iterator- Returns:
- the computed size of the PrintIterator.
-