
public class ColorMappingForScalarContainer extends Object
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 ColorMappingVariation.init(float, float, float, float))
* then call refresh() and the colors (ColorMapping.getColorForIndex(int))
will reflect the new set-up
cf. https://github.com/osmdroid/osmdroid/issues/1551| Constructor and Description |
|---|
ColorMappingForScalarContainer(ColorMappingForScalar pInnerMapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(float pScalar) |
ColorMappingForScalar |
getMappingForScalar() |
float |
getScalarMax() |
float |
getScalarMin() |
void |
refresh() |
int |
size() |
public ColorMappingForScalarContainer(ColorMappingForScalar pInnerMapping)
public ColorMappingForScalar getMappingForScalar()
public int size()
public float getScalarMin()
public float getScalarMax()
public void add(float pScalar)
public void refresh()