Inheritance diagram for DisplayGUI.ColorScale:
Public Member Functions | |
ColorScale (double xlow, Color loColor, String loLabel, double xHigh, Color hiColor, String hiLabel) | |
Creates a new instance of colorScale with gradient colors. | |
ColorScale (double xlow, Color loColor, String loLabel) | |
Creates an instance of colorScale with solid colors. | |
void | setLogScale () |
void | add (double value, Color color, String label) |
Add a new point on the scale with specified value, color, and label. | |
void | drawColorScale (java.awt.Graphics2D g2, int x, int y) |
Draw the color scale at x,y. | |
void | drawSolidColorScale (java.awt.Graphics2D g2, int x, int y) |
void | drawAxisLabel (java.awt.Graphics2D g2, int x, int y, String label) |
Draw axis label at x,y. | |
Color | getColor (double value) |
get color for given value | |
String | getLabel (String value) |
Public Attributes | |
Vector | values |
Vector of physical values in scale. | |
Vector | colors |
Vector of colors in scale. | |
Vector | labels |
Vector of axis labels in scale. | |
double | firstDataPoint |
Value of first data point in scale. | |
double | lastDataPoint |
Value of last data point in scale. | |
boolean | isGradientPaint |
Does scale contain gradient colors? | |
boolean | logScale |
Display log scale. |