|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.volume.colors.ColorTransformTable
public class ColorTransformTable
Provide a lookup table for transforming ints that hold RGB to new ints that hold RGB values. It is by default sparse and unspecified values are unchanged.
| Field Summary | |
|---|---|
static int |
NO_COLOR
|
| Constructor Summary | |
|---|---|
ColorTransformTable()
Create a blank table, unspecified values are unchanged. |
|
| Method Summary | |
|---|---|
void |
add(int originalColor,
int targetColor)
Add an entry to the table |
int |
get(int originalColor)
Look up originalColor and return the entry in the table or originalColor if non specified. |
void |
setDefault(int value)
Set the default return value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_COLOR
| Constructor Detail |
|---|
public ColorTransformTable()
| Method Detail |
|---|
public void setDefault(int value)
value -
public void add(int originalColor,
int targetColor)
originalColor - The original RGB color.targetColor - The new RGB color.public int get(int originalColor)
originalColor -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||