|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.omGraphics.grid.GreyscaleSlopeColors
public class GreyscaleSlopeColors
Creates the colors used for displaying the DTED images. The default mode is to use greyscale colors.
Field Summary | |
---|---|
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 Summary | |
---|---|
GreyscaleSlopeColors()
Default setting is 216 colors, and greyscale. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public GreyscaleSlopeColors()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |