#ifndef __HPRGAXIS_h__
#define __HPRGAXIS_h__
#include "TCanvas.h"
#include "TTimer.h"
#include "TGaxis.h"
namespace std {} using namespace std;
class HprGaxis : public TGaxis {
private:
TTimer * fTimer;
Int_t fSkipNextNotify;
protected:
TCanvas *fCanvas;
Double_t fFrameX1;
Double_t fFrameX2;
Double_t fFrameY1;
Double_t fFrameY2;
Int_t fLogx;
Int_t fLogy;
Double_t fOffset;
Double_t fRatio;
Double_t fAxisOffset;
Int_t fWhere;
public:
HprGaxis(TCanvas * canvas, Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax,
Double_t wmin, Double_t wmax, Int_t ndiv = 510,
Option_t* chopt = "", Double_t gridlength = 0);
HprGaxis() { if ( fTimer ) {fTimer->Stop(); delete fTimer;}};
void ReDoAxis();
void HandlePadModified();
void SetOffset(Double_t off) { fOffset = off; };
Double_t GetOffset() { return fOffset; };
void SetAxisOffset(Double_t off) { fAxisOffset = off; };
Double_t GetAxisOffset() { return fAxisOffset; };
void SetRatio(Double_t ratio) {fRatio = ratio; };
Double_t GetRatio() {return fRatio; };
void SetWhere(Double_t where) {fWhere = where; };
Double_t GetWhere() {return fWhere; };
ClassDef(HprGaxis, 2)
};
#endif