healpix.plot3d.canvas3d
Class ColorMap

java.lang.Object
  extended by healpix.plot3d.canvas3d.ColorMap

public class ColorMap
extends Object

Creates a color map using a color transformation of data values.

Version:
$Id: ColorMap.java 49444 2008-05-07 10:23:02Z ejoliet $
Author:
ejoliet

Constructor Summary
ColorMap(double min, double max)
          Creates a new ColorMap from min and max data values and default color transformation.
ColorMap(double min, double max, ColorTransform ctrans)
          Creates a new ColorMap object from min and max data values with a color transformation as input.
 
Method Summary
 Color getColor(double val)
          Converts a value into a Color using the actual color tranformation, and minimum and maximum value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMap

public ColorMap(double min,
                double max)
Creates a new ColorMap from min and max data values and default color transformation.

Parameters:
min - minimum value
max - maximum value

ColorMap

public ColorMap(double min,
                double max,
                ColorTransform ctrans)
Creates a new ColorMap object from min and max data values with a color transformation as input.

Parameters:
min - minimum value
max - maximum value
ctrans - a color transformation
Method Detail

getColor

public Color getColor(double val)
Converts a value into a Color using the actual color tranformation, and minimum and maximum value.

Parameters:
val - value to convert into Color
Returns:
a corresponding transformed color

"Built from revision exported"