public class SpectrumPaintScale
extends java.lang.Object
implements org.jfree.chart.renderer.PaintScale, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
SpectrumPaintScale()
Use the defaults, with a minimum of 0 and a maximum of 1.
|
SpectrumPaintScale(double lo,
double hi)
Change the data range expected.
|
Modifier and Type | Method and Description |
---|---|
double |
getLowerBound()
Get the data value at the bottom of the range.
|
java.awt.Color |
getPaint(double val)
Lookup the paint color to use for a data value
|
double |
getUpperBound()
Get the data value at the top of the range.
|
static void |
main(java.lang.String[] args)
Command-line testing
|
public static final java.lang.String ID
public SpectrumPaintScale()
public SpectrumPaintScale(double lo, double hi)
lo
- The lowest valid data valuehi
- The highest valid data valuepublic double getLowerBound()
getLowerBound
in interface org.jfree.chart.renderer.PaintScale
public double getUpperBound()
getUpperBound
in interface org.jfree.chart.renderer.PaintScale
public java.awt.Color getPaint(double val)
getPaint
in interface org.jfree.chart.renderer.PaintScale
val
- The data valuepublic static void main(java.lang.String[] args)
args
- unusedCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona