edu.washington.biostr.sig.volume.colors
Class ColorLookupTables

java.lang.Object
  extended by edu.washington.biostr.sig.volume.colors.ColorLookupTables

public class ColorLookupTables
extends Object

Provide a convenience method for generating a ColorLookupTable.

Version:
1
Author:
Eider Moore

Field Summary
static int NUM_VALUES
          I assume that the maximum resolution that all but the most advanced color schemes will have is 1000 values (with a single color, its 256.
 
Constructor Summary
ColorLookupTables()
           
 
Method Summary
static ColorLookupTable getTable(ColorScheme positive, ColorScheme negative, VolumeArray array)
           
static ColorLookupTable getTable(ColorScheme positive, double max, double posThreshold, double posWindow, ColorScheme negative, double min, double negThreshold, double negWindow, double alpha, boolean integer)
          Generate a color lookup table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_VALUES

public static final int NUM_VALUES
I assume that the maximum resolution that all but the most advanced color schemes will have is 1000 values (with a single color, its 256. With warm or cold, its around 766).

See Also:
Constant Field Values
Constructor Detail

ColorLookupTables

public ColorLookupTables()
Method Detail

getTable

public static ColorLookupTable getTable(ColorScheme positive,
                                        double max,
                                        double posThreshold,
                                        double posWindow,
                                        ColorScheme negative,
                                        double min,
                                        double negThreshold,
                                        double negWindow,
                                        double alpha,
                                        boolean integer)
Generate a color lookup table.

Parameters:
positive - The color scheme for positive values.
max - The maximum value
posThreshold - The lower bound on positive numbers
posWindow - The upper bound on positive numbers
negative - The colorscheme to use for negative values
min - The minimum value
negThreshold - The lower bound on negative numbers
negWindow - The upper bound on negative numbers
alpha - The level of transparency to use.
integer - If the data is stored as floats or integers, false will always work but will consume more memory.
Returns:
A new table with the above settings.

getTable

public static ColorLookupTable getTable(ColorScheme positive,
                                        ColorScheme negative,
                                        VolumeArray array)


Copyright © 2006 University of Washington. All Rights Reserved.