Class EmptyPrint
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.EmptyPrint
-
-
Constructor Summary
Constructors Constructor Description EmptyPrint()Constructs an EmptyPrint with size (0, 0).EmptyPrint(int width, int height)Constructs an EmptyPrint with the given size.EmptyPrint(org.eclipse.swt.graphics.Point size)Constructs an EmptyPrint with the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcheckDimension(int dim)booleanequals(java.lang.Object obj)org.eclipse.swt.graphics.PointgetSize()Returns the size of the empty space.inthashCode()PrintIteratoriterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)Returns a PrintIterator for laying out the contents of this Print.
-
-
-
Constructor Detail
-
EmptyPrint
public EmptyPrint()
Constructs an EmptyPrint with size (0, 0).
-
EmptyPrint
public EmptyPrint(int width, int height)Constructs an EmptyPrint with the given size.- Parameters:
width- width of the Print, in points (72pts = 1").height- height of the Print, in points (72pts = 1").
-
EmptyPrint
public EmptyPrint(org.eclipse.swt.graphics.Point size)
Constructs an EmptyPrint with the given size.- Parameters:
size- the size, in points (72pts = 1").
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getSize
public org.eclipse.swt.graphics.Point getSize()
Returns the size of the empty space.- Returns:
- the size of the empty space.
-
checkDimension
private int checkDimension(int dim)
-
iterator
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Description copied from interface:PrintReturns 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.
-
-