public class VectorColorMapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLACK |
static int |
BLUE |
static int |
GREEN |
static int |
RED |
static int |
SPECTRUM |
Constructor and Description |
---|
VectorColorMapper(int _numColors,
double _ceil) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPallet(java.awt.Color backgroundColor) |
java.awt.Color |
doubleToColor(double mag)
Converts a double to a color.
|
double |
getCeiling() |
double |
getFloor() |
protected void |
setPaletteType(int _paletteType)
Sets the color palette.
|
void |
setScale(double _ceil)
Sets the scale.
|
javax.swing.JFrame |
showLegend() |
public static final int SPECTRUM
public static final int RED
public static final int BLUE
public static final int GREEN
public static final int BLACK
public double getFloor()
public double getCeiling()
protected void setPaletteType(int _paletteType)
_paletteType
- protected void checkPallet(java.awt.Color backgroundColor)
public void setScale(double _ceil)
_ceil
- public java.awt.Color doubleToColor(double mag)
mag
- public javax.swing.JFrame showLegend()