-
public class ColorMappingForScalarContainerScalar container on top of any ColorMappingForScalar Typical use: * create the ColorMappingForScalar you need * create a ColorMappingForScalarContainer on top of it * add your scalars to the container If you need to adjust your color mapping because you have a better idea of the actual scalar range * first adjust the settings (e.g. with init) * then call refresh and the colors (getColorForIndex) will reflect the new set-up cf. https://github.com/osmdroid/osmdroid/issues/1551
-
-
Constructor Summary
Constructors Constructor Description ColorMappingForScalarContainer(ColorMappingForScalar pInnerMapping)
-
Method Summary
Modifier and Type Method Description ColorMappingForScalargetMappingForScalar()intsize()floatgetScalarMin()floatgetScalarMax()voidadd(floatĀ pScalar)voidrefresh()-
-
Constructor Detail
-
ColorMappingForScalarContainer
ColorMappingForScalarContainer(ColorMappingForScalar pInnerMapping)
-
-
Method Detail
-
getMappingForScalar
ColorMappingForScalar getMappingForScalar()
-
size
int size()
-
getScalarMin
float getScalarMin()
-
getScalarMax
float getScalarMax()
-
add
void add(floatĀ pScalar)
-
refresh
void refresh()
-
-
-
-