#ifndef ROOT_TPaletteAxis
#define ROOT_TPaletteAxis
#ifndef ROOT_TPave
#include "TPave.h"
#endif
#ifndef ROOT_TGaxis
#include "TGaxis.h"
#endif
class TH1;
class TPaletteAxis : public TPave {
protected:
TGaxis fAxis;
TH1 *fH;
TString fName;
public:
enum { kHasView = BIT(11)};
TPaletteAxis();
TPaletteAxis(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, TH1 *h);
TPaletteAxis(const TPaletteAxis &palette);
virtual ~TPaletteAxis();
void Copy(TObject &palette) const;
TPaletteAxis& operator=(const TPaletteAxis&);
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
TGaxis *GetAxis() {return &fAxis;}
Int_t GetBinColor(Int_t i, Int_t j);
Option_t *GetName() const {return fName.Data();}
virtual char *GetObjectInfo(Int_t px, Int_t py) const;
Int_t GetValueColor(Double_t zc);
virtual void Paint(Option_t *option="");
virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
virtual void SetName(const char *name="") {fName = name;}
virtual void SetLabelColor(Int_t labelcolor) {fAxis.SetLabelColor(labelcolor);}
virtual void SetLabelFont(Int_t labelfont) {fAxis.SetLabelFont(labelfont);}
virtual void SetLabelOffset(Float_t labeloffset) {fAxis.SetLabelOffset(labeloffset);}
virtual void SetLabelSize(Float_t labelsize) {fAxis.SetLabelSize(labelsize);}
virtual void SetTitleOffset(Float_t titleoffset=1) {fAxis.SetTitleOffset(titleoffset);}
virtual void SetTitleSize(Float_t titlesize) {fAxis.SetTitleSize(titlesize);}
virtual void SetLineColor(Color_t linecolor) {fAxis.SetLineColor(linecolor);}
virtual void SetLineWidth(Width_t linewidth) {fAxis.SetLineWidth(linewidth);}
virtual void UnZoom();
ClassDef(TPaletteAxis,2)
};
#endif