| java.lang.Object org.netbeans.modules.image.ImagePrintSupport
ImagePrintSupport | public class ImagePrintSupport implements PrintCookie,Printable,ImageObserver(Code) | | Printing support.
Manipulations of the image to suit page size and orientation
occur through the method prepareImage( PageFormat ).
Subclass' override this method to honour image handling.
author: michael wever [hair@netbeans.org] author: Marian Petras version: $Revision$ |
Method Summary | |
public boolean | imageUpdate(java.awt.Image image, int flags, int param2, int param3, int param4, int param5) | public void | print() Print the content of the object. | public int | print(Graphics graphics, PageFormat pageFormat, int page) | protected static RenderedImage | transformImage(RenderedImage image, PageFormat pf) Prepare the image to fit on the given page, within the given margins. |
renderedImage | protected RenderedImage renderedImage(Code) | | |
imageUpdate | public boolean imageUpdate(java.awt.Image image, int flags, int param2, int param3, int param4, int param5)(Code) | | |
print | public void print()(Code) | | Print the content of the object.
|
transformImage | protected static RenderedImage transformImage(RenderedImage image, PageFormat pf) throws IllegalArgumentException(Code) | | Prepare the image to fit on the given page, within the given margins.
Returns null if it were unable to prepare the image for the given page.
Throws a IllegalArgumentException if the page were too small for the image.
|
|
|