|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.ImagePrint
public class ImagePrint
A Print for displaying images.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public org.eclipse.swt.graphics.ImageData getImageData()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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
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 |