00001
00020 #ifndef COLORAXIS_H
00021 #define COLORAXIS_H
00022
00023 #include "Midad/Base/RangeAxis.h"
00024
00025 class ColorAxis : public RangeAxis
00026 {
00027
00028 public:
00029
00030
00031 ColorAxis(int ncolors, double width,
00032 double x1, double y1, double x2, double y2, int ndiv = 505,
00033 Option_t* option="");
00034 ColorAxis(int ncolors, double width,
00035 RangeDouble* range,
00036 double x1, double y1, double x2, double y2, int ndiv = 505,
00037 Option_t* option="");
00038 virtual ~ColorAxis();
00039
00040
00041
00042 void SetScale(double s) { fScale = s; }
00043 double GetScale() { return fScale; }
00044
00045
00046 virtual void PaintAxis(double xmin, double ymin, double xmax, double ymax,
00047 double &wmin, double &wmax, int &ndiv, Option_t *chopt="",
00048 double unused1=0, bool unused2=kFALSE);
00049
00050 void PaintPalette();
00051
00052 private:
00053
00054
00055 ColorAxis(const ColorAxis& rhs);
00056 ColorAxis& operator=(const ColorAxis& rhs);
00057
00058 int fNcolors;
00059 double fWidth;
00060 double fScale;
00061
00062 ClassDef(ColorAxis,0)
00063 };
00064
00065 #endif // COLORAXIS_H