public static enum SymbolMBLayer.TextAnchor extends Enum<SymbolMBLayer.TextAnchor>
Enum Constant and Description |
---|
BOTTOM
The bottom of the text is placed closest to the anchor.
|
BOTTOM_LEFT
The bottom left corner of the text is placed closest to the anchor.
|
BOTTOM_RIGHT
The bottom right corner of the text is placed closest to the anchor.
|
CENTER
The center of the text is placed closest to the anchor.
|
LEFT
The left side of the text is placed closest to the anchor.
|
RIGHT
The right side of the text is placed closest to the anchor.
|
TOP
The top of the text is placed closest to the anchor.
|
TOP_LEFT
The top left corner of the text is placed closest to the anchor.
|
TOP_RIGHT
The top right corner of the text is placed closest to the anchor.
|
Modifier and Type | Method and Description |
---|---|
static double |
getAnchorX(String jsonString)
Quickly grab x justification for jsonString.
|
static double |
getAnchorY(String jsonString)
Quickly grab y justification for jsonString.
|
double |
getX()
Horizontal justification.
|
double |
getY()
Vertical justification.
|
String |
json()
The json representation of this TextAnchor.
|
static SymbolMBLayer.TextAnchor |
parse(String jsonString)
Parse provided jsonString as a TextAnchor.
|
static SymbolMBLayer.TextAnchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SymbolMBLayer.TextAnchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SymbolMBLayer.TextAnchor CENTER
public static final SymbolMBLayer.TextAnchor LEFT
public static final SymbolMBLayer.TextAnchor RIGHT
public static final SymbolMBLayer.TextAnchor TOP
public static final SymbolMBLayer.TextAnchor BOTTOM
public static final SymbolMBLayer.TextAnchor TOP_LEFT
public static final SymbolMBLayer.TextAnchor TOP_RIGHT
public static final SymbolMBLayer.TextAnchor BOTTOM_LEFT
public static final SymbolMBLayer.TextAnchor BOTTOM_RIGHT
public static SymbolMBLayer.TextAnchor[] values()
for (SymbolMBLayer.TextAnchor c : SymbolMBLayer.TextAnchor.values()) System.out.println(c);
public static SymbolMBLayer.TextAnchor 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 nullpublic double getX()
public double getY()
public static SymbolMBLayer.TextAnchor parse(String jsonString)
One of center, left, right, top, bottom, top-left, top-right, bottom-left, bottom-right. Defaults to center.
jsonString
- text anchor definitionpublic String json()
public static double getAnchorY(String jsonString)
jsonString
- text anchor definitionpublic static double getAnchorX(String jsonString)
jsonString
- text anchor definitionCopyright © 1996–2022 Geotools. All rights reserved.