public class PrintUtilities extends Object implements Printable
The original source code for this class only was obtained from http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html without restrictions as specified on their web site. To quote the link above:
All source code freely available for unrestricted use.
However, additional changes have been made to the original.
NO_SUCH_PAGE, PAGE_EXISTS| Constructor and Description |
|---|
PrintUtilities(Component componentToBePrinted) |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableDoubleBuffering(Component c) |
static void |
enableDoubleBuffering(Component c) |
void |
print() |
int |
print(Graphics g,
PageFormat pageFormat,
int pageIndex) |
static void |
printComponent(Component c) |
public PrintUtilities(Component componentToBePrinted)
public static void printComponent(Component c)
public void print()
public int print(Graphics g, PageFormat pageFormat, int pageIndex)
public static void disableDoubleBuffering(Component c)
public static void enableDoubleBuffering(Component c)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.