#ifndef T_HEAL_PALETTE_AXIS
#define T_HEAL_PALETTE_AXIS
#include "TPave.h"
#include "TGaxis.h"
class THealPix;
class THealPaletteAxis : public TPave {
protected:
TGaxis fAxis;
THealPix* fHeal;
TString fName;
public:
enum { kHasView = BIT(11)};
THealPaletteAxis();
THealPaletteAxis(Double_t x1, Double_t y1, Double_t x2 ,Double_t y2, THealPix* hp);
THealPaletteAxis(const THealPaletteAxis& palette);
virtual ~THealPaletteAxis();
void Copy(TObject &palette) const;
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;}
Option_t* GetName() const {return fName.Data();}
virtual char* GetObjectInfo(Int_t px, Int_t py) const;
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(THealPaletteAxis, 1)
};
#endif // T_HEAL_PALETTE_AXIS