Package org.geotools.mbstyle.expression
Class MBRampsScalesCurves
- Object
- 
- ExpressionAbstract
- 
- FunctionImpl
- 
- MBExpression
- 
- MBRampsScalesCurves
 
 
 
 
- 
- All Implemented Interfaces:
- Expression,- Function
 
 public class MBRampsScalesCurves extends MBExpression 
- 
- 
Field Summary- 
Fields inherited from class MBExpressioncolors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoom
 - 
Fields inherited from class FunctionImplfunctionName
 - 
Fields inherited from interface ExpressionNIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description MBRampsScalesCurves(JSONArray json)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetExpression()Determines which expression to use.ExpressionrscInterpolate()Produces continuous, smooth results by interpolating between pairs of input and output values ("stops").ExpressionrscStep()Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops").- 
Methods inherited from class MBExpressioncanCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteral
 - 
Methods inherited from class FunctionImplaccept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
 - 
Methods inherited from class ExpressionAbstractevaluate
 - 
Methods inherited from interface Expressionevaluate
 
- 
 
- 
- 
- 
Method Detail- 
rscInterpolatepublic Expression rscInterpolate() Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The input may be any numeric expression (e.g., ["get", "population"]). Stop inputs must be numeric literals in strictly ascending order. The output type must be number, array<number>, or color. Example: ["interpolate", interpolation: ["linear"] | ["exponential", base] | ["cubic-bezier", x1, y1, x2, y2 ], input: number, stop_input_1: number, stop_output_1: OutputType, stop_input_n: number, stop_output_n: OutputType, ... ]: OutputType (number, array<number>, or Color)"- Returns:
- interpolate expression (not implemented)
 
 - 
rscSteppublic Expression rscStep() Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The input may be any numeric expression (e.g., ["get", "population"]). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.- Returns:
- expression from stop values (unimplemented)
 
 - 
getExpressionpublic Expression getExpression() throws MBFormatException Description copied from class:MBExpressionDetermines which expression to use.- Specified by:
- getExpressionin class- MBExpression
- Throws:
- MBFormatException
 
 
- 
 
-