|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.plugin.filter.Printer
public class Printer
This plugin implements the File/Page Setup and File/Print commands.
Field Summary | |
---|---|
protected int |
numPages
|
protected java.awt.print.PageFormat |
pageFormat
|
protected double |
printHeight
|
protected double |
printWidth
|
protected double |
printX
|
protected double |
printY
|
protected double |
scalefactor
|
Fields inherited from interface ij.plugin.filter.PlugInFilter |
---|
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.print.Pageable |
---|
UNKNOWN_NUMBER_OF_PAGES |
Constructor Summary | |
---|---|
Printer()
|
Method Summary | |
---|---|
int |
getNumberOfPages()
Return the number of pages. |
java.awt.print.PageFormat |
getPageFormat(int pagenum)
Return the PageFormat object for the specified page. |
java.awt.print.Printable |
getPrintable(int pagenum)
This Pageable method returns the Printable object for the specified page. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
|
void |
run(ImageProcessor ip)
Filters use this method to process the image. |
int |
setup(java.lang.String arg,
ImagePlus imp)
This method is called once when the filter is loaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.print.PageFormat pageFormat
protected double scalefactor
protected int numPages
protected double printX
protected double printY
protected double printWidth
protected double printHeight
Constructor Detail |
---|
public Printer()
Method Detail |
---|
public int getNumberOfPages()
getNumberOfPages
in interface java.awt.print.Pageable
public java.awt.print.Printable getPrintable(int pagenum)
getPrintable
in interface java.awt.print.Pageable
public java.awt.print.PageFormat getPageFormat(int pagenum)
getPageFormat
in interface java.awt.print.Pageable
public int setup(java.lang.String arg, ImagePlus imp)
PlugInFilter
For Plugin-filters specifying the FINAL_PROCESSING flag, the setup method will be called again, this time with arg = "final" after all other processing is done.
setup
in interface PlugInFilter
public void run(ImageProcessor ip)
PlugInFilter
null
.
run
in interface PlugInFilter
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
print
in interface java.awt.print.Printable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |