Searched defs:pageIndex (Results 1 - 25 of 28) sorted by relevance

12

/openjdk7/jdk/test/java/awt/print/PrinterJob/ImagePrinting/
H A DPrintARGBImage.java58 public int print(Graphics g, PageFormat pf, int pageIndex) argument
61 if (pageIndex != 0) {
H A DClippedImages.java197 public PageFormat getPageFormat(int pageIndex) argument
200 if (pageIndex < 0 || pageIndex >= getNumberOfPages()) {
205 switch (pageIndex % 2) {
226 public Printable getPrintable(int pageIndex) argument
229 if (pageIndex < 0 || pageIndex >= getNumberOfPages()) {
232 if (pageIndex < 2) {
/openjdk7/jdk/src/share/classes/java/awt/print/
H A DPageable.java59 * <code>pageIndex</code>.
60 * @param pageIndex the zero based index of the page whose
68 PageFormat getPageFormat(int pageIndex) argument
73 * rendering the page specified by <code>pageIndex</code>.
74 * @param pageIndex the zero based index of the page whose
81 Printable getPrintable(int pageIndex) argument
H A DPrintable.java111 * <code>pageIndex</code> is too large and that the requested page
124 * of the requested page is specified by <code>pageIndex</code>.
133 * @param pageIndex the zero based index of the page to be drawn
135 * or NO_SUCH_PAGE if <code>pageIndex</code> specifies a
140 int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument
H A DBook.java71 * <code>pageIndex</code>.
72 * @param pageIndex the zero based index of the page whose
79 public PageFormat getPageFormat(int pageIndex) argument
82 return getPage(pageIndex).getPageFormat();
87 * the page specified by <code>pageIndex</code>.
88 * @param pageIndex the zero based index of the page whose
94 public Printable getPrintable(int pageIndex) argument
97 return getPage(pageIndex).getPrintable();
103 * @param pageIndex the zero based index of the page whose
113 public void setPage(int pageIndex, Printabl argument
167 getPage(int pageIndex) argument
[all...]
/openjdk7/jdk/test/java/awt/print/PrinterJob/
H A DPrtException.java63 public int print(Graphics g,PageFormat pf,int pageIndex) { argument
65 if(pageIndex>=1){
H A DExceptionTest.java67 public PageFormat getPageFormat(int pageIndex) { argument
68 if (pageIndex > MAXPAGE) throw new IndexOutOfBoundsException();
73 public Printable getPrintable(int pageIndex) { argument
74 if (pageIndex == 1) throw new IndexOutOfBoundsException();
H A DPrintLatinCJKTest.java70 public int print(Graphics g, PageFormat pf, int pageIndex) argument
73 if (pageIndex > 0) {
H A DCollate2DPrintingTest.java78 public int print(Graphics g, PageFormat pf, int pageIndex) argument
80 g.drawString("Page: " + pageIndex, 100, 100);
81 if (pageIndex == 2) {
/openjdk7/jdk/src/share/classes/sun/swing/text/
H A DCompoundPrintable.java49 final int pageIndex) throws PrinterException {
52 ret = printables.peek().print(graphics, pf, pageIndex - offset);
47 print(final Graphics graphics, final PageFormat pf, final int pageIndex) argument
H A DTextComponentPrintable.java457 final int pageIndex) throws PrinterException {
469 return printOnEDT(graphics, pf, pageIndex);
492 ret = printOnEDT(graphics, pf, pageIndex);
506 final int pageIndex) throws PrinterException {
512 Object[] formatArg = new Object[]{Integer.valueOf(pageIndex + 1)};
527 updatePagesMetrics(pageIndex,
531 if (pagesMetrics.size() <= pageIndex) {
546 pagesMetrics.get(pageIndex).end
547 - pagesMetrics.get(pageIndex).start + 1);
555 g2d.translate(xStart, - pagesMetrics.get(pageIndex)
455 print(final Graphics graphics, final PageFormat pf, final int pageIndex) argument
504 printOnEDT(final Graphics graphics, final PageFormat pf, final int pageIndex) argument
710 updatePagesMetrics(final int pageIndex, final int pageHeight) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/print/
H A DOpenBook.java76 * Return the PageFormat of the page specified by 'pageIndex'.
81 public PageFormat getPageFormat(int pageIndex) { argument
87 * the page specified by 'pageIndex'.
92 public Printable getPrintable(int pageIndex) argument
H A DPSPathGraphics.java69 Printable painter, PageFormat pageFormat, int pageIndex,
71 super(graphics, printerJob, painter, pageFormat, pageIndex, canRedraw);
645 int pageIndex = getPageIndex();
690 painter.print(proxy, pageFormat, pageIndex);
68 PSPathGraphics(Graphics2D graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex, boolean canRedraw) argument
H A DPrintJob2D.java261 private int pageIndex = -1; field in class:PrintJob2D
759 ++pageIndex;
764 if (pageIndex == 0 && !graphicsToBeDrawn.isClosed()) {
935 * of the requested page is specified by <code>pageIndex</code>.
944 * @param pageIndex the zero based index of the page to be drawn
946 * or NO_SUCH_PAGE if <code>pageIndex</code> specifies a
951 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument
H A DPathGraphics.java96 int pageIndex, boolean canRedraw) {
101 mPageIndex = pageIndex;
94 PathGraphics(Graphics2D graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex, boolean canRedraw) argument
H A DRasterPrinterJob.java1827 protected int printPage(Pageable document, int pageIndex) argument
1834 origPage = document.getPageFormat(pageIndex);
1836 painter = document.getPrintable(pageIndex);
1973 int pageResult = painter.print(peekGraphics, origPage, pageIndex);
1976 debug_println("startPage "+pageIndex);
1980 * of "pageIndex-1", since PageRanges mean that pages can be
1990 startPage(page, painter, pageIndex, paperChanged);
1993 pageIndex);
2013 painter.print(pathGraphics, origPage, pageIndex);
2128 painter.print(painterGraphics, origPage, pageIndex);
2197 createPathGraphics(PeekGraphics graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex) argument
[all...]
H A DPSPrinterJob.java1020 int pageIndex) {
1042 painter, pageFormat, pageIndex,
1016 createPathGraphics(PeekGraphics peekGraphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex) argument
/openjdk7/jdk/test/javax/print/
H A DDialogMargins.java93 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) { argument
95 if (pageIndex > 0) {
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTablePrintable.java201 * @param pageIndex the zero based index of the page to be drawn
206 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument
218 Object[] pageNumber = new Object[]{Integer.valueOf(pageIndex + 1)};
289 // with a non-zero pageIndex. Second, we know that we can be called
294 while (last < pageIndex) {
/openjdk7/jdk/test/java/awt/print/Dialog/
H A DDialogOrient.java83 public int print(Graphics g, PageFormat pf, int pageIndex) { argument
85 if (pageIndex > 0) return NO_SUCH_PAGE;
/openjdk7/jdk/src/share/classes/sun/swing/
H A DPrintingStatus.java270 final PageFormat pageFormat, final int pageIndex)
274 printDelegatee.print(graphics, pageFormat, pageIndex);
277 updateStatusOnEDT(pageIndex);
281 updateStatusOnEDT(pageIndex);
294 private void updateStatusOnEDT(int pageIndex) { argument
297 new Integer(pageIndex + 1)};
269 print(final Graphics graphics, final PageFormat pageFormat, final int pageIndex) argument
/openjdk7/jdk/test/java/awt/print/PrinterJob/ValidatePage/
H A DValidatePage.java252 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) { argument
254 if (pageIndex > 0) {
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCPrinterJob.java489 private PageFormat getPageFormat(int pageIndex) { argument
493 page = getPageable().getPageFormat(pageIndex);
500 private Printable getPrintable(int pageIndex) { argument
504 painter = getPageable().getPrintable(pageIndex);
579 final int pageIndex,
593 painter.print(pathGraphics, page, pageIndex);
613 private Object[] getPageformatPrintablePeekgraphics(final int pageIndex) { argument
620 PageFormat pageFormat = pageable.getPageFormat(pageIndex);
622 Printable printable = pageable.getPrintable(pageIndex);
651 private Rectangle2D printAndGetPageFormatArea(final Printable printable, final Graphics graphics, final PageFormat pageFormat, final int pageIndex) { argument
575 printToPathGraphics( final PeekGraphics graphics, final PrinterJob printerJob, final Printable painter, final PageFormat page, final int pageIndex, final long context) argument
[all...]
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWPathGraphics.java113 Printable painter, PageFormat pageFormat, int pageIndex,
115 super(graphics, printerJob, painter, pageFormat, pageIndex, canRedraw);
1337 int pageIndex = getPageIndex();
1382 painter.print(proxy, pageFormat, pageIndex);
112 WPathGraphics(Graphics2D graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex, boolean canRedraw) argument
/openjdk7/jdk/src/share/classes/sun/applet/
H A DAppletViewer.java771 public int print(Graphics graphics, PageFormat pf, int pageIndex) { argument
772 if (pageIndex > 0) {

Completed in 87 milliseconds

12