Class PrintSizeStrategy
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.internal.util.PrintSizeStrategy
-
public abstract class PrintSizeStrategy extends java.lang.ObjectThe 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
Fields Modifier and Type Field Description static PrintSizeStrategyMINIMUMCompute the minimum sizestatic PrintSizeStrategyPREFERREDCompute the preferred size.
-
Constructor Summary
Constructors Modifier Constructor Description privatePrintSizeStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.eclipse.swt.graphics.PointcomputeSize(PrintIterator print)Computes the size of the PrintIterator.
-
-
-
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.
-
-