Package org.geotools.mbstyle.parse
Enum Class MBFunction.FunctionType
- All Implemented Interfaces:
Serializable
,Comparable<MBFunction.FunctionType>
,Constable
- Enclosing class:
- MBFunction
Optional type, one of identity, exponential, interval, categorical.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFunctions return the output value of the stop equal to the function input.Functions generate an output by interpolating between stops just less than and just greater than the function input.Functions return their input as their output.Functions return the output value of the stop just less than the function input. -
Method Summary
Modifier and TypeMethodDescriptionstatic MBFunction.FunctionType
Returns the enum constant of this class with the specified name.static MBFunction.FunctionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
Functions return their input as their output. -
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
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
Functions return the output value of the stop equal to the function input.Maps to
RecodeFunction
.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-