Modifier and Type | Field and Description |
---|---|
(package private) int |
height |
(package private) int |
width |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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").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