Enum Class MBFunction.FunctionType

All Implemented Interfaces:
Serializable, Comparable<MBFunction.FunctionType>, Constable
Enclosing class:
MBFunction

public static enum MBFunction.FunctionType extends Enum<MBFunction.FunctionType>
Optional type, one of identity, exponential, interval, categorical.
  • Enum Constant Details

    • 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 of FilterFunction_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 Details

    • values

      public static MBFunction.FunctionType[] 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

      public static MBFunction.FunctionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null