public interface PuColorMapIf
Sample usage:
m_colorBar.setColorMap( new PuColorMapIf() {
public Color getColor(double x) {
float c1 = 0, c0 = 0.66f;// blue = 0, red = 1
float frac = (c1-c0)*(float)x + c0;
return new Color(Color.HSBtoRGB(frac, 1f, 1f));
}
});
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(double value)
Get the color for a value in [0, 1].
|
"