|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jhlabs.image.ArrayColormap
public class ArrayColormap
A colormap implemented with an array of colors. This corresponds to the IndexColorModel class.
| Constructor Summary | |
|---|---|
ArrayColormap()
Construct an all-black colormap |
|
ArrayColormap(int[] map)
Construct a colormap with the given map |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
getColor(float v)
Convert a value in the range 0..1 to an RGB color. |
int[] |
getMap()
|
void |
setColor(int index,
int color)
|
void |
setColorInterpolated(int index,
int firstIndex,
int lastIndex,
int color)
Set the color at "index" to "color". |
void |
setColorRange(int firstIndex,
int lastIndex,
int color)
|
void |
setColorRange(int firstIndex,
int lastIndex,
int color1,
int color2)
|
void |
setMap(int[] map)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayColormap()
public ArrayColormap(int[] map)
map - the array of ARGB colors| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic void setMap(int[] map)
public int[] getMap()
public int getColor(float v)
getColor in interface Colormapv - a value in the range 0..1
public void setColorInterpolated(int index,
int firstIndex,
int lastIndex,
int color)
public void setColorRange(int firstIndex,
int lastIndex,
int color1,
int color2)
public void setColorRange(int firstIndex,
int lastIndex,
int color)
public void setColor(int index,
int color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||