public class ComponentPrinter2D extends Object implements Printable
NO_SUCH_PAGE, PAGE_EXISTS| Constructor and Description |
|---|
ComponentPrinter2D() |
| Modifier and Type | Method and Description |
|---|---|
static Image | createPrintImage(Component componentToPrint, Dimension dimension)Returns the image of a component using print methods in the AWT thread. |
int | print(Graphics g, PageFormat pf, int pageIndex)Prints the requested component using Java2D. |
static boolean | render(LogEvent logger, Component componentToPrint, boolean useDefault)Renders a "frame" window. |
public static boolean render(LogEvent logger, Component componentToPrint, boolean useDefault)
public static Image createPrintImage(Component componentToPrint, Dimension dimension)
componentToPrint - The component.dimension - Dimension of component, UPDATED by this method.public int print(Graphics g, PageFormat pf, int pageIndex)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.