| Modifier and Type | Field and Description |
|---|---|
(package private) org.eclipse.swt.graphics.Point |
dpi |
(package private) org.eclipse.swt.graphics.ImageData |
imageData |
(package private) org.eclipse.swt.graphics.Point |
size |
| Constructor and Description |
|---|
ImagePrint(org.eclipse.swt.graphics.ImageData imageData)
Constructs an ImagePrint with the given imageData, initialized at 72dpi.
|
ImagePrint(org.eclipse.swt.graphics.ImageData imageData,
org.eclipse.swt.graphics.Point dpi)
Constructs an ImagePrint with the given imageData and dpi.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.eclipse.swt.graphics.Point |
getDPI()
Returns the DPI that this image will be rendered at.
|
org.eclipse.swt.graphics.ImageData |
getImageData()
Returns the ImageData of the image being printed.
|
org.eclipse.swt.graphics.Point |
getSize()
Returns the size that the image will be rendered at, in points.
|
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.
|
void |
setDPI(int dpiX,
int dpiY)
Sets the ImagePrint to render the image at the given DPI.
|
void |
setDPI(org.eclipse.swt.graphics.Point dpi)
Sets the ImagePrint to render the image at the DPI of the argument.
|
void |
setSize(int width,
int height)
Sets the ImagePrint to render the image at the given size, in points.
|
void |
setSize(org.eclipse.swt.graphics.Point size)
Sets the ImagePrint to render the image at the given size, in points.
|
org.eclipse.swt.graphics.ImageData imageData
org.eclipse.swt.graphics.Point dpi
org.eclipse.swt.graphics.Point size
public ImagePrint(org.eclipse.swt.graphics.ImageData imageData)
imageData - the image to be displayed.public ImagePrint(org.eclipse.swt.graphics.ImageData imageData,
org.eclipse.swt.graphics.Point dpi)
imageData - the image to be displayed.dpi - the DPI that the image will be displayed at.public org.eclipse.swt.graphics.ImageData getImageData()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setSize(org.eclipse.swt.graphics.Point size)
size - the explicit size, in points, that the image be printed at.public void setSize(int width,
int height)
width - the explicit width, in points, that the image will be printed
at.height - the explicit height, in points, that the image will be printed
at.public org.eclipse.swt.graphics.Point getSize()
public void setDPI(org.eclipse.swt.graphics.Point dpi)
dpi - the DPI of the image.public void setDPI(int dpiX,
int dpiY)
dpiX - the horizontal DPI the image will be rendered at.dpiY - the vertical DPI the image will be rendered at.public org.eclipse.swt.graphics.Point getDPI()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Print