Main Page   Packages   Class Hierarchy   Compound List   Compound Members   Related Pages  

DisplayGUI.ColorScale Class Reference

Class to hold and draw color scale information. More...

Inheritance diagram for DisplayGUI.ColorScale:

DisplayGUI.displayParams List of all members.

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.


Detailed Description

Class to hold and draw color scale information.

Author:
robinson


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:38:38 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3