Class ColorMap
Defines a color map for FastUniformHeatmapRenderableSeries
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ColorMap
Constructors
ColorMap(int startColor, int endColor)
Creates a new instance of ColorMap class
Declaration
public ColorMap(int startColor, int endColor)
Parameters
Type | Name | Description |
---|---|---|
int | startColor | The start color |
int | endColor | The end color |
ColorMap(int[] colors, float[] stops)
Creates a new instance of ColorMap class
Declaration
public ColorMap(int[] colors, float[] stops)
Parameters
Type | Name | Description |
---|---|---|
int[] | colors | The colors used by this color map |
float[] | stops | The stops used by this color map |
Fields
colors
The color map colors
Declaration
public final int[] colors
Field Value
Type | Description |
---|---|
int[] |
stops
The color map stop points
Declaration
public final float[] stops
Field Value
Type | Description |
---|---|
float[] |
Methods
createColorMapBitmap(renderableSeries.ColorMap colorMap, int width, int height)
Helper method which creates Bitmap from ColorMap instance
Declaration
public static Bitmap createColorMapBitmap(renderableSeries.ColorMap colorMap, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
colorMap | The color map |
|
int | width | The width of bitmap |
int | height | The height of bitmap |
Returns
Type | Description |
---|---|
android.graphics.Bitmap | The Bitmap instance |
lerpColorForValue(float value)
Interpolates a data-value in this ColorMap.
Declaration
public int lerpColorForValue(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | The value to interpolate color for. |
Returns
Type | Description |
---|---|
int | A linear interpolated color. |
lerpColorsForValues(IntegerValues colors, DoubleValues values, double min, double max)
Performs linear interpolation for specified colors based mapping from this ColorMap and specified min
and max
values
Declaration
public void lerpColorsForValues(IntegerValues colors, DoubleValues values, double min, double max)
Parameters
Type | Name | Description |
---|---|---|
IntegerValues | colors | The colors to set |
DoubleValues | values | The values to interpolate |
double | min | The min value used during interpolation |
double | max | The max value used during interpolation |