|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.glaivestone.javax.awt.print.SimplePaginator | +--com.glaivestone.javax.swing.print.JComponentPrinter
Print any JComponent with the Java awt print package.
This class requires Java 1.3 or later
Field Summary |
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 | |
JComponentPrinter(javax.swing.JComponent component)
Create a Pageable that can print a Swing JComponent over multiple pages. |
|
JComponentPrinter(javax.swing.JComponent component,
java.awt.print.PageFormat format)
Create a Pageable that can print a Swing JComponent over multiple pages. |
Method Summary | |
double |
getScaleX()
Get the scale for the X axis. |
double |
getScaleY()
Get the scale for the Y axis. |
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
|
void |
scaleToFit(boolean useSymmetricScaling)
|
void |
scaleToFitX()
|
void |
scaleToFitY()
|
void |
setScale(double scaleX,
double scaleY)
Set the scale for the X and Y axis. |
Methods inherited from class com.glaivestone.javax.awt.print.SimplePaginator |
getNumberOfPages, getNumberOfPagesX, getNumberOfPagesY, getPageFormat, getPrintable |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JComponentPrinter(javax.swing.JComponent component, java.awt.print.PageFormat format)
format
- The size of the pages over which the componenent will
be printed.public JComponentPrinter(javax.swing.JComponent component)
Method Detail |
public double getScaleX()
public double getScaleY()
public int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public void setScale(double scaleX, double scaleY)
public void scaleToFitX()
public void scaleToFitY()
public void scaleToFit(boolean useSymmetricScaling)
|
GFL 1.1 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |