|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.EmptyPrint
public class EmptyPrint
A Print which displays nothing but takes up space. Useful for putting blank cells in a GridPrint.
Constructor Summary | |
---|---|
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 | |
---|---|
boolean |
equals(java.lang.Object obj)
|
org.eclipse.swt.graphics.Point |
getSize()
Returns the size of the empty space. |
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 |
---|
public EmptyPrint()
public EmptyPrint(int width, int height)
width
- width of the Print, in points (72pts = 1").height
- height of the Print, in points (72pts = 1").public EmptyPrint(org.eclipse.swt.graphics.Point size)
size
- the size, in points (72pts = 1").Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public org.eclipse.swt.graphics.Point getSize()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Print
iterator
in interface Print
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |