Package org.geotools.renderer.label
Enum LabelCacheImpl.LabelRenderingMode
- Object
-
- Enum<LabelCacheImpl.LabelRenderingMode>
-
- LabelRenderingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<LabelCacheImpl.LabelRenderingMode>
- Enclosing class:
- LabelCacheImpl
public static enum LabelCacheImpl.LabelRenderingMode extends Enum<LabelCacheImpl.LabelRenderingMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADAPTIVE
Draws all diagonal lines in OUTLINE model, but horizontal ones in STRING mode.OUTLINE
Always extracts the outline from theGlyphVector
and paints it as a shape.STRING
Always usesGraphics2D.drawGlyphVector(java.awt.font.GlyphVector, float, float)
to draw the straight labels.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
STRING
public static final LabelCacheImpl.LabelRenderingMode STRING
Always usesGraphics2D.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 centered
-
OUTLINE
public static final LabelCacheImpl.LabelRenderingMode OUTLINE
Always extracts the outline from theGlyphVector
and paints it as a shape. It's a bit slower, generates more antialiasing, ensures labels and halos are perfectly Centred
-
ADAPTIVE
public static final LabelCacheImpl.LabelRenderingMode ADAPTIVE
Draws all diagonal lines in OUTLINE model, but horizontal ones in STRING mode. Gives the best results when coupled withRenderingHints.VALUE_FRACTIONALMETRICS_ON
for good label/halo centering
-
-
Method Detail
-
values
public static LabelCacheImpl.LabelRenderingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LabelCacheImpl.LabelRenderingMode c : LabelCacheImpl.LabelRenderingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LabelCacheImpl.LabelRenderingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-