public class GreyscaleSlopeColors extends java.lang.Object implements ElevationColors
Modifier and Type | Field and Description |
---|---|
int |
adjustment
adjustment is set up for values between 1-5.
|
int[] |
colors
the colors in use right now, ARGB values.
|
static int |
DEFAULT_OPAQUENESS |
static int |
NUM_COLORS |
static int |
NUM_ELEVATION_COLORS |
java.awt.Color |
waterColor |
Constructor and Description |
---|
GreyscaleSlopeColors()
Default setting is 216 colors, and greyscale.
|
Modifier and Type | Method and Description |
---|---|
int[] |
createGreyscaleColors(int num_colors,
int opaqueness) |
int |
getARGB(int elevation,
Length units,
double slope)
Get the int argb value for a given elevation, with the provided
units.
|
java.awt.Color |
getColor(int elevation,
Length units,
double slope)
Get the Color for the given elevation, with the provided units.
|
int[] |
getColors()
Get a List of colors.
|
int[] |
getColortable()
Get a colortable as an array of ints.
|
java.awt.Color |
getWaterColor()
Get the color to use for water/invalid data, zero elevation.
|
int |
numColors() |
void |
setColors(int[] clrs)
Set the List of colors.
|
void |
setWaterColor(java.awt.Color water)
Set the color to use for water/invalid data, zero elevation.
|
public static final int NUM_COLORS
public static final int NUM_ELEVATION_COLORS
public static final int DEFAULT_OPAQUENESS
public java.awt.Color waterColor
public int[] colors
public int adjustment
public GreyscaleSlopeColors()
public int[] getColors()
public void setColors(int[] clrs)
public int[] getColortable()
ElevationColors
getColortable
in interface ElevationColors
public void setWaterColor(java.awt.Color water)
public java.awt.Color getWaterColor()
public java.awt.Color getColor(int elevation, Length units, double slope)
getColor
in interface ElevationColors
public int getARGB(int elevation, Length units, double slope)
getARGB
in interface ElevationColors
public int numColors()
public int[] createGreyscaleColors(int num_colors, int opaqueness)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details