equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
25 |
25 |
26 package java.awt.print; |
26 package java.awt.print; |
27 |
27 |
28 import java.awt.Graphics; |
28 import java.awt.Graphics; |
29 |
29 |
30 import javax.tools.annotation.GenerateNativeHeader; |
|
31 |
30 |
32 /** |
31 /** |
33 * The <code>Printable</code> interface is implemented |
32 * The <code>Printable</code> interface is implemented |
34 * by the <code>print</code> methods of the current |
33 * by the <code>print</code> methods of the current |
35 * page painter, which is called by the printing |
34 * page painter, which is called by the printing |
98 * <p> |
97 * <p> |
99 * @see java.awt.print.Pageable |
98 * @see java.awt.print.Pageable |
100 * @see java.awt.print.PageFormat |
99 * @see java.awt.print.PageFormat |
101 * @see java.awt.print.PrinterJob |
100 * @see java.awt.print.PrinterJob |
102 */ |
101 */ |
103 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
104 @GenerateNativeHeader |
|
105 public interface Printable { |
102 public interface Printable { |
106 |
103 |
107 /** |
104 /** |
108 * Returned from {@link #print(Graphics, PageFormat, int)} |
105 * Returned from {@link #print(Graphics, PageFormat, int)} |
109 * to signify that the requested page was rendered. |
106 * to signify that the requested page was rendered. |