NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


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,v 1.1.2.4 2010/02/22 14:55:50 healpix Exp $
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"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650