Package org.geotools.mbstyle.parse
Enum MBFunction.FunctionType
- Object
-
- Enum<MBFunction.FunctionType>
-
- FunctionType
-
- All Implemented Interfaces:
Serializable
,Comparable<MBFunction.FunctionType>
- Enclosing class:
- MBFunction
public static enum MBFunction.FunctionType extends Enum<MBFunction.FunctionType>
Optional type, one of identity, exponential, interval, categorical.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATEGORICAL
Functions return the output value of the stop equal to the function input.EXPONENTIAL
Functions generate an output by interpolating between stops just less than and just greater than the function input.IDENTITY
Functions return their input as their output.INTERVAL
Functions return the output value of the stop just less than the function input.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MBFunction.FunctionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MBFunction.FunctionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTITY
public static final MBFunction.FunctionType IDENTITY
Functions return their input as their output.
-
EXPONENTIAL
public static final MBFunction.FunctionType EXPONENTIAL
Functions generate an output by interpolating between stops just less than and just greater than the function input. The domain must be numeric. This is the default for properties marked with "exponential" symbol.This is the default function type for continuous value (such as color or line width).
Maps to
Interpolate
, requiring use ofFilterFunction_pow
for base other that 1.
-
INTERVAL
public static final MBFunction.FunctionType INTERVAL
Functions return the output value of the stop just less than the function input. The domain must be numeric. This is the default for properties marked with thie "interval" symbol.This is the default function type for enums values (such as line_cap).
Maps to
CategorizeFunction
.
-
CATEGORICAL
public static final MBFunction.FunctionType CATEGORICAL
Functions return the output value of the stop equal to the function input.Maps to
RecodeFunction
.
-
-
Method Detail
-
values
public static MBFunction.FunctionType[] 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 (MBFunction.FunctionType c : MBFunction.FunctionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MBFunction.FunctionType 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
-
-