|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<LabelCacheImpl.LabelRenderingMode>
LabelCacheImpl.LabelRenderingMode
public static enum LabelCacheImpl.LabelRenderingMode
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 centered
public 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
centered
public static final LabelCacheImpl.LabelRenderingMode ADAPTIVE
RenderingHints.VALUE_FRACTIONALMETRICS_ON
for good label/halo centering
Method Detail |
---|
public 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 name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |