public class XSLFRenderingHint
extends java.awt.RenderingHints.Key
Modifier and Type | Field and Description |
---|---|
static XSLFRenderingHint |
FONT_HANDLER
Use this object to resolve unknown / missing fonts when rendering slides
|
static XSLFRenderingHint |
GRESTORE |
static XSLFRenderingHint |
GSAVE |
static XSLFRenderingHint |
IMAGE_RENDERER
Use a custom image rendener
|
static int |
TEXT_AS_CHARACTERS
draw text via
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float) |
static int |
TEXT_AS_SHAPES
draw text via
TextLayout.draw(java.awt.Graphics2D, float, float) |
static XSLFRenderingHint |
TEXT_RENDERING_MODE
how to render text:
TEXT_AS_CHARACTERS (default) means to draw via
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float) . |
Constructor and Description |
---|
XSLFRenderingHint(int i) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCompatibleValue(java.lang.Object val) |
public static final XSLFRenderingHint GSAVE
public static final XSLFRenderingHint GRESTORE
public static final XSLFRenderingHint IMAGE_RENDERER
XSLFImageRenderer
public static final XSLFRenderingHint TEXT_RENDERING_MODE
TEXT_AS_CHARACTERS
(default) means to draw via
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float)
.
This mode draws text as characters. Use it if the target graphics writes the actual
character codes instead of glyph outlines (PDFGraphics2D, SVGGraphics2D, etc.)
TEXT_AS_SHAPES
means to render via
TextLayout.draw(java.awt.Graphics2D, float, float)
.
This mode draws glyphs as shapes and provides some advanced capabilities such as
justification and font substitution. Use it if the target graphics is an image.public static final int TEXT_AS_CHARACTERS
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float)
public static final int TEXT_AS_SHAPES
TextLayout.draw(java.awt.Graphics2D, float, float)
public static final XSLFRenderingHint FONT_HANDLER
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.