public class ColorTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.Color[] |
colors |
(package private) java.lang.String |
name |
(package private) int |
nColor |
(package private) double |
rangeDelta |
(package private) double |
rangeMax |
(package private) double |
rangeMin |
Constructor and Description |
---|
ColorTable(java.lang.String snm) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor(double f) |
java.awt.Color |
getColor(int i) |
java.awt.Color[] |
getColors() |
java.awt.Color |
getFractionalColor(double f) |
java.lang.String |
getName() |
int |
getNColor() |
double |
getRangeMax() |
double |
getRangeMin() |
void |
interp(int a,
int b) |
java.awt.Color |
interpColorAt(double fracin) |
static ColorTable |
makeDefaultColorTable() |
void |
setColor(int ic,
java.awt.Color c) |
void |
setNColor(int nc) |
void |
setRange(double dmin,
double dmax) |
void |
setRangeMax(double d) |
void |
setRangeMin(double d) |
private void |
syncRangeDelta() |
java.lang.String |
toString() |
java.lang.String name
int nColor
java.awt.Color[] colors
double rangeMin
double rangeMax
double rangeDelta
public static ColorTable makeDefaultColorTable()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public int getNColor()
public java.awt.Color getColor(int i)
public void setNColor(int nc)
public void setColor(int ic, java.awt.Color c)
public java.awt.Color[] getColors()
public java.awt.Color getColor(double f)
public java.awt.Color getFractionalColor(double f)
public java.awt.Color interpColorAt(double fracin)
public void interp(int a, int b)
public void setRange(double dmin, double dmax)
private void syncRangeDelta()
public void setRangeMin(double d)
public void setRangeMax(double d)
public double getRangeMin()
public double getRangeMax()
Copyright © 2013. All Rights Reserved.