java.awt.PrintGraphics Java Examples
The following examples show how to use
java.awt.PrintGraphics.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SwingUtilities2.java From Bytecoder with Apache License 2.0 | 4 votes |
static boolean isPrinting(Graphics g) { return (g instanceof PrinterGraphics || g instanceof PrintGraphics); }
Example #2
Source File: RenderingUtils.java From LGoodDatePicker with MIT License | 4 votes |
private static boolean isPrinting(Graphics g) { return g instanceof PrintGraphics || g instanceof PrinterGraphics; }