public static enum LabelCacheImpl.LabelRenderingMode extends Enum<LabelCacheImpl.LabelRenderingMode>
Enum Constant and Description |
---|
ADAPTIVE
Draws all diagonal lines in OUTLINE model, but horizontal ones in STRING mode.
|
OUTLINE
Always extracts the outline from the
GlyphVector and paints it as a shape. |
STRING
Always uses
Graphics2D.drawGlyphVector(java.awt.font.GlyphVector, float, float)
to draw the straight labels. |
Modifier and Type | Method and Description |
---|---|
static LabelCacheImpl.LabelRenderingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LabelCacheImpl.LabelRenderingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelCacheImpl.LabelRenderingMode STRING
Graphics2D.drawGlyphVector(java.awt.font.GlyphVector, float, float)
to draw the straight labels. It's faster, straight and horizontal labels look better,
diagonal labels look worse, labels and halos are not perfectly centeredpublic static final LabelCacheImpl.LabelRenderingMode OUTLINE
GlyphVector
and paints it as a shape. It's a
bit slower, generates more antialiasing, ensures labels and halos are perfectly Centredpublic static final LabelCacheImpl.LabelRenderingMode ADAPTIVE
RenderingHints.VALUE_FRACTIONALMETRICS_ON
for good
label/halo centeringpublic static LabelCacheImpl.LabelRenderingMode[] values()
for (LabelCacheImpl.LabelRenderingMode c : LabelCacheImpl.LabelRenderingMode.values()) System.out.println(c);
public static LabelCacheImpl.LabelRenderingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1996–2019 Geotools. All rights reserved.