|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.dted.DTEDFrameColorTable
public class DTEDFrameColorTable
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. |
protected java.awt.Color[] |
ccolors
The colored colortable. |
java.awt.Color[] |
colors
the colors in use right now. |
static int |
DEFAULT_OPAQUENESS
|
static int |
DTED_COLORS
|
protected java.awt.Color[] |
gcolors
The greyscale colortable. |
protected boolean |
greyScale
Flag to indicate which colortable to use - color or greys. |
static int |
NUM_ELEVATION_COLORS
|
protected int |
opaqueness
opaqueness should be a value between 0 (clear) and 255 (opaque) |
Constructor Summary | |
---|---|
DTEDFrameColorTable()
Default setting is 216 colors, and greyscale. |
|
DTEDFrameColorTable(DTEDFrameColorTable cTable)
|
|
DTEDFrameColorTable(int num_colors)
|
|
DTEDFrameColorTable(int num_colors,
int opaque,
boolean greyscale)
|
Method Summary | |
---|---|
int |
colorValue(int color_index)
|
protected java.awt.Color[] |
createColors(int num_colors,
int adjustment)
|
protected java.awt.Color[] |
createGreyScaleColors(int num_colors)
|
java.awt.Color[] |
getCColors()
|
java.awt.Color[] |
getGColors()
|
boolean |
getGreyScale()
|
int |
getOpaqueness()
|
static void |
main(java.lang.String[] args)
|
int |
numColors()
|
void |
setGreyScale(boolean greyscale)
|
void |
setOpaqueness(int opaque)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DTED_COLORS
public static final int NUM_ELEVATION_COLORS
public static final int DEFAULT_OPAQUENESS
public java.awt.Color[] colors
protected java.awt.Color[] ccolors
protected java.awt.Color[] gcolors
protected int opaqueness
protected boolean greyScale
public int adjustment
Constructor Detail |
---|
public DTEDFrameColorTable()
public DTEDFrameColorTable(int num_colors)
public DTEDFrameColorTable(int num_colors, int opaque, boolean greyscale)
public DTEDFrameColorTable(DTEDFrameColorTable cTable)
Method Detail |
---|
public int getOpaqueness()
public void setOpaqueness(int opaque)
public java.awt.Color[] getCColors()
public java.awt.Color[] getGColors()
public void setGreyScale(boolean greyscale)
public boolean getGreyScale()
public int numColors()
public int colorValue(int color_index)
protected java.awt.Color[] createGreyScaleColors(int num_colors)
protected java.awt.Color[] createColors(int num_colors, int adjustment)
public static void main(java.lang.String[] args)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |