Printable
objects are
the basic elements in the printable document model. They represent
concrete objects such as label, line, and rectangle printed on a page.
Therefore, printable objects must be added to pages so that they can
be previewed and printed. java.awt.print.Printable
interface.
In other words, you have to write the print()
method
of this interface if you want to implement a new printable object.
See Java print package and printing API and the JDK™
documentation
for more information on this interface. print()
method
is as follows: public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
Graphics
object.
You are responsible for setting the correct clip and transformation
to position the printing results as wanted. Class |
Purpose |
---|---|
IlvPrintableLine |
To print a line. |
IlvPrintableRectangle |
To print a rectangle. |
IlvPrintableLabel |
To print a label. |
IlvPrintableTable |
To print a portion of the JTable . |
IlvPrintableTableHeader |
To print a portion of the JTableHeader . |