Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

DisplayGUI.ColorScale Class Reference

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

Inheritance diagram for DisplayGUI.ColorScale:

Inheritance graph
[legend]
Collaboration diagram for DisplayGUI.ColorScale:

Collaboration graph
[legend]
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 (String title, boolean isLog, boolean isGrad)
 ColorScale (double xlow, Color loColor, String loLabel)
 Creates an instance of colorScale with solid colors.

 ColorScale (String title, List scalePoints, boolean isGradientPaint, boolean isLogScale)
 ColorScale (ColorScale newScale)
String setTitle (String title)
String getTitle ()
void setLogScale (boolean log)
boolean isLogScale ()
void setGradientPaint (boolean isGradientPaint)
boolean isGradientPaint ()
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 dValue)
 get color for given value

String getLabel (Double value)
List getScalePoints ()
int getNoPoints ()
ColorScalePoint getColorScalePoint (int index)
void setColorScalePoint (int index, ColorScalePoint csp)
void setLastPoint (double lastValue)
void setLastPoint (int lastValue)
void removePoint (int index)
void add (ColorScalePoint newPoint)
void printData ()
boolean equals (ColorScale otherScale)

Package Attributes

List scalePoints
boolean isGradientPaint
 Does scale contain gradient colors?

boolean logScale
 Display log scale.

String title = null
SortedMap sortedMap

Private Member Functions

void orderList ()

Detailed Description

Class to hold and draw color scale information.

Author:
robinson

Definition at line 18 of file ColorScale.java.


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:55:58 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5