Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class LinearColorTransform

    java.lang.Object
      LinearColorTransform

All Implemented Interfaces:
  ColorTransformer

    public class LinearColorTransform

extends java.lang.Object
implements ColorTransformer

This class is so far the only implemtation of the ColorTransformer interface.

Author:
  B.Düring, S.Holst

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

### LinearColorTransform

    public LinearColorTransform(double beginning,
                                double ending)

  The Constructor

  Parameters:
    `beginning` - the smallest value to be mapped
    `ending` - the larges value to be mappedd
  Throws:
    `java.lang.RuntimeException` - if start>=ending

Method Detail

### toColor

    public final int toColor(double d)

  The actual mapping for one pixel

  Parameters:
    `d` - value at the pixel
  Returns:
    color value for that pixel

### toColor

    public java.lang.Object toColor(java.lang.Object obj)

  Mapping for 2D-arrays

  Specified by:
    `toColor` in interface `ColorTransformer`

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD