|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.print.util.ImagePrint
Implementation of the Print interface that is used to print high resolution images. Images are always printed
on one single page.
| Constructor Summary | |
ImagePrint(java.awt.Image image)
Constructs a new ImagePrint with the given image. |
|
ImagePrint(java.awt.Image image,
int width,
int height)
Constructs a new ImagePrint with the given image and the given size. |
|
| Method Summary | |
java.awt.Image |
getImage()
Returns the Image associated with the ImagePrint. |
int |
getImageHeight()
Returns the height of the Image, either the specified or the original value. |
int |
getImageWidth()
Returns the width of the Image, either the specified or the original value. |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print. |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator. |
void |
setImage(java.awt.Image image)
Sets the Image associated with the ImagePrint. |
void |
setImage(java.awt.Image image,
int width,
int height)
Sets the Image associated with the ImagePrint. |
void |
setImageSize(int width,
int height)
Sets the size of the Image. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImagePrint(java.awt.Image image)
ImagePrint with the given image.
image - The Image that will be painted.
public ImagePrint(java.awt.Image image,
int width,
int height)
ImagePrint with the given image and the given size.
image - The Image that will be painted.width - The width of the image. Specify -1 to use the original width of the image or a positive integer to overwrite that value.height - The height of the image. Specify -1 to use the original height of the image or a positive integer to overwrite that value.| Method Detail |
public java.awt.Image getImage()
Image associated with the ImagePrint.
Image associated with the ImagePrint. It can be null.public void setImage(java.awt.Image image)
Image associated with the ImagePrint.
image - The Image associated with the ImagePrint. It can be null.
public void setImage(java.awt.Image image,
int width,
int height)
Image associated with the ImagePrint.
image - The Image associated with the ImagePrint. It can be null.width - The width of the image. Specify -1 to use the original width of the image or a positive integer to overwrite that value.height - The height of the image. Specify -1 to use the original height of the image or a positive integer to overwrite that value.public int getImageWidth()
Image, either the specified or the original value.
Image, either the specified or the original value.public int getImageHeight()
public void setImageSize(int width,
int height)
Image.
width - The width of the image. Specify -1 to use the original width of the image or a positive integer to overwrite that value.height - The height of the image. Specify -1 to use the original height of the image or a positive integer to overwrite that value.public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
PrintPrint.
getPreferredSize in interface Printg - The relevant Graphics object. It can be used to calculate the widths of strings.
Print.public PrintIterator getPrintIterator()
PrintPrintIerator. The PrintIterator is used like an enumeration to generate all Prints.
getPrintIterator in interface PrintPrintIterator that is able to iterate over the Print.
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||