Package org.geotools.mbstyle.layer
Enum SymbolMBLayer.IconTextFit
- Object
-
- Enum<SymbolMBLayer.IconTextFit>
-
- IconTextFit
-
- All Implemented Interfaces:
Serializable
,Comparable<SymbolMBLayer.IconTextFit>
- Enclosing class:
- SymbolMBLayer
public static enum SymbolMBLayer.IconTextFit extends Enum<SymbolMBLayer.IconTextFit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH
The icon is scaled in both x- and y-dimensions.HEIGHT
The icon is scaled in the y-dimension to fit the height of the text.NONE
The icon is displayed at its intrinsic aspect ratio.WIDTH
The icon is scaled in the x-dimension to fit the width of the text.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SymbolMBLayer.IconTextFit
valueOf(String name)
Returns the enum constant of this type with the specified name.static SymbolMBLayer.IconTextFit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SymbolMBLayer.IconTextFit NONE
The icon is displayed at its intrinsic aspect ratio.
-
WIDTH
public static final SymbolMBLayer.IconTextFit WIDTH
The icon is scaled in the x-dimension to fit the width of the text.
-
HEIGHT
public static final SymbolMBLayer.IconTextFit HEIGHT
The icon is scaled in the y-dimension to fit the height of the text.
-
BOTH
public static final SymbolMBLayer.IconTextFit BOTH
The icon is scaled in both x- and y-dimensions.
-
-
Method Detail
-
values
public static SymbolMBLayer.IconTextFit[] 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 (SymbolMBLayer.IconTextFit c : SymbolMBLayer.IconTextFit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolMBLayer.IconTextFit 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
-
-