|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectLinearColorTransform
public class LinearColorTransform
This class is so far the only implemtation of the ColorTransformer interface.
| Constructor Summary | |
|---|---|
LinearColorTransform(double beginning,
double ending)
The Constructor |
|
| Method Summary | |
|---|---|
int |
toColor(double d)
The actual mapping for one pixel |
java.lang.Object |
toColor(java.lang.Object obj)
Mapping for 2D-arrays |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearColorTransform(double beginning,
double ending)
beginning - the smallest value to be mappedending - the larges value to be mappedd
java.lang.RuntimeException - if start>=ending| Method Detail |
|---|
public final int toColor(double d)
d - value at the pixel
public java.lang.Object toColor(java.lang.Object obj)
toColor in interface ColorTransformer
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||