|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.print.AbstractPrintable
lt.monarch.print.ComponentPrintable
public class ComponentPrintable extends AbstractPrintable
Printable implementation for printing GUI components. Scaling and alignment of
printout can be customized using methods provided in AbstractPrintable superclass.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.print.AbstractPrintable |
|---|
headerFooterRenderer, horizontalAlignment, lastValidPageIndex, scaligFactorSpecified, scalingFitToPagesGridCols, scalingFitToPagesGridRows, scalingMode, verticalAlignment |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface lt.monarch.print.PrintableConstants |
|---|
ALIGNMENT_BOTTOM, ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TOP, SCALING_FACTOR_SPECIFIED, SCALING_FIT_TO_PAGES |
| Constructor and Description |
|---|
ComponentPrintable(java.awt.Component componentToPrint)
Creates new instance of ComponentPrintable for printing given component. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
This method should be invoked after printing is finished and ComponentPrintable
object is no longer necessary. |
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
Implements the print method of Printable interface. |
| Methods inherited from class lt.monarch.print.AbstractPrintable |
|---|
getHeaderFooterRenderer, setHeaderFooterRenderer, setHorizontalAlignment, setScalingFactorSpecified, setScalingFitToPagesGrid, setScalingMode, setVerticalAlignment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentPrintable(java.awt.Component componentToPrint)
ComponentPrintable for printing given component.
componentToPrint - component for printing.| Method Detail |
|---|
public int print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
throws java.awt.print.PrinterException
print method of Printable interface.
graphics - Graphics contextpageFormat - format of pagepageIndex - index of pagejava.awt.print.PrinterExceptionpublic void dispose()
ComponentPrintable
object is no longer necessary.
dispose in class AbstractPrintable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||