public class InterpolationColorMap extends java.lang.Object implements ColorMap
Constructor and Description |
---|
InterpolationColorMap(double[] values,
java.awt.Color[] colors) |
InterpolationColorMap(java.io.File file) |
InterpolationColorMap(java.io.Reader reader) |
InterpolationColorMap(java.lang.String filename) |
InterpolationColorMap(java.lang.String name,
double[] values,
java.awt.Color[] colors) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor(double value) |
java.awt.Color[] |
getColors() |
java.lang.String |
getName() |
double[] |
getValues() |
static void |
main(java.lang.String[] args) |
void |
setColors(java.awt.Color[] colors) |
void |
setName(java.lang.String name) |
void |
setValues(double[] values) |
java.lang.String |
toString() |
public InterpolationColorMap(double[] values, java.awt.Color[] colors)
public InterpolationColorMap(java.lang.String name, double[] values, java.awt.Color[] colors)
public InterpolationColorMap(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public InterpolationColorMap(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public InterpolationColorMap(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.lang.String toString()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic double[] getValues()
public void setValues(double[] values)
values
- the values to setpublic java.awt.Color[] getColors()
public void setColors(java.awt.Color[] colors)
colors
- the colors to set