|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.print.JComponentPrinter
public class JComponentPrinter
Will scale the component so it fits on a page horizontally
| Nested Class Summary | |
|---|---|
class |
JComponentPrinter.TranslatedPrintable
This inner class's sole responsibility is to translate the coordinate system before invoking a canvas's painter. |
| Field Summary |
|---|
| Fields inherited from interface java.awt.print.Pageable |
|---|
UNKNOWN_NUMBER_OF_PAGES |
| Constructor Summary | |
|---|---|
JComponentPrinter(JComponent component,
PageFormat format)
|
|
| Method Summary | |
|---|---|
int |
getNumberOfPages()
Returns the number of pages over which the canvas will be drawn. |
PageFormat |
getPageFormat(int pageIndex)
Returns the PageFormat of the page specified by pageIndex. |
Printable |
getPrintable(int pageIndex)
Returns the Printable instance responsible for
rendering the page specified by pageIndex. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JComponentPrinter(JComponent component,
PageFormat format)
| Method Detail |
|---|
public int getNumberOfPages()
getNumberOfPages in interface Pageable
public PageFormat getPageFormat(int pageIndex)
throws IndexOutOfBoundsException
getPageFormat in interface PageablepageIndex - the zero based index of the page whose
PageFormat is being requested
IndexOutOfBoundsException - the Pageable does not contain the requested
page.
public Printable getPrintable(int pageIndex)
throws IndexOutOfBoundsException
Printable instance responsible for
rendering the page specified by pageIndex.
getPrintable in interface PageablepageIndex - the zero based index of the page whose
Printable is being requested
IndexOutOfBoundsException - the Pageable does not contain the requested
page.
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||