Package org.geotools.renderer.label
Enum Class LabelCacheImpl.LabelRenderingMode
- All Implemented Interfaces:
- Serializable,- Comparable<LabelCacheImpl.LabelRenderingMode>,- Constable
- Enclosing class:
- LabelCacheImpl
public static enum LabelCacheImpl.LabelRenderingMode
extends Enum<LabelCacheImpl.LabelRenderingMode>
- 
Nested Class SummaryNested classes/interfaces inherited from class EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionDraws all diagonal lines in OUTLINE model, but horizontal ones in STRING mode.Always extracts the outline from theGlyphVectorand paints it as a shape.Always usesGraphics2D.drawGlyphVector(java.awt.font.GlyphVector, float, float)to draw the straight labels.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LabelCacheImpl.LabelRenderingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
STRINGAlways 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
- 
OUTLINEAlways extracts the outline from theGlyphVectorand paints it as a shape. It's a bit slower, generates more antialiasing, ensures labels and halos are perfectly Centred
- 
ADAPTIVEDraws all diagonal lines in OUTLINE model, but horizontal ones in STRING mode. Gives the best results when coupled withRenderingHints.VALUE_FRACTIONALMETRICS_ONfor good label/halo centering
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-