public class GraphicsRenderingHints
extends java.lang.Object
The GraphicsRenderingHints class provides a central place for
storing Java2D rendering hints settings. The
GraphicsRenderingHints object is used to apply different rendering
hints for printing and screen presentation when rending a Page's content.
The "screen" and "print" configuration are configurable with system properties. See the ICEpdf Developer's Guide for more information about configuring these properites.
| Modifier and Type | Field and Description |
|---|---|
static int |
PRINT
Constant used to specify rendering hint specific to print rendering.
|
static int |
SCREEN
Constant used to specify rendering hint specific to screen rendering.
|
| Modifier and Type | Method and Description |
|---|---|
static GraphicsRenderingHints |
getDefault()
Gets the singleton representation of this object.
|
java.awt.Color |
getPageBackgroundColor(int hintType) |
java.awt.RenderingHints |
getRenderingHints(int hintType)
Gets the rendering hints for either the SCREEN or PRINT mode.
|
void |
reset()
Rereads the system properties responsible for setting the rendering hints
for both the PRINT and SCREEN modes.
|
public static final int SCREEN
public static final int PRINT
public static GraphicsRenderingHints getDefault()
public java.awt.RenderingHints getRenderingHints(int hintType)
hintType - SCREEN or PRINT, if incorrectly specified PRINT settings
are returned.public java.awt.Color getPageBackgroundColor(int hintType)
public void reset()