|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.wisc.ssec.mcidasv.ui.McIdasColorTableDefaults
public class McIdasColorTableDefaults
A class to provide color tables suitable for data displays. Uses some code by Ugo Taddei. All methods are static.
Field Summary | |
---|---|
static String |
NAME_AOD
The name of the "aod" color table |
static String |
NAME_COT
The name of the "cot" color table |
Constructor Summary | |
---|---|
McIdasColorTableDefaults()
|
Method Summary | |
---|---|
static ColorTable |
createColorTable(ArrayList l,
String name,
String category,
float[][] table)
_more_ |
static ColorTable |
createColorTable(ArrayList l,
String name,
String category,
float[][] table,
boolean tableFlipped)
Create a ColorTable and add it to the given list |
static ColorTable |
createColorTable(String name,
String category,
float[][] table)
Create a ColorTable and add it to the given list |
private static ColorTable |
makeColorTable(String name,
String cat,
ArrayList colors)
_more_ |
static float[][] |
makeTableFromASCII(String name)
Read in and process a hydra color table |
private static float[][] |
processFloats(List reds,
List greens,
List blues)
Convert strings of floats to scaled colors |
private static float[][] |
processInts(List reds,
List greens,
List blues)
Convert strings of integers to scaled colors |
private static float[][] |
toArray(List colors)
Utility to convert list of colors to float array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME_AOD
public static final String NAME_COT
Constructor Detail |
---|
public McIdasColorTableDefaults()
Method Detail |
---|
public static ColorTable createColorTable(String name, String category, float[][] table)
name
- The CT namecategory
- Its categorytable
- The actual data
public static ColorTable createColorTable(ArrayList l, String name, String category, float[][] table)
l
- _more_name
- _more_category
- _more_table
- _more_
public static ColorTable createColorTable(ArrayList l, String name, String category, float[][] table, boolean tableFlipped)
l
- List to add the ColorTable toname
- The CT namecategory
- Its categorytable
- The actual datatableFlipped
- If true then the table data is not in row major order
public static final float[][] makeTableFromASCII(String name) throws IllegalArgumentException
name
- File name
IllegalArgumentException
private static float[][] processInts(List reds, List greens, List blues)
reds
- list of red stringsgreen
- list of green stringsblue
- list of blue strings
private static float[][] processFloats(List reds, List greens, List blues)
reds
- list of red stringsgreen
- list of green stringsblue
- list of blue strings
private static float[][] toArray(List colors)
colors
- colors
private static ColorTable makeColorTable(String name, String cat, ArrayList colors)
name
- _more_cat
- _more_colors
- _more_
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |