Enum MBFunction.FunctionType

    • Enum Constant Detail

      • 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.

    • 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 name
        NullPointerException - if the argument is null