#ifndef TLabel_headerguard #define TLabel_headerguard #include "TPaveLabel.h" class TLabel : public TPaveLabel { public: TLabel(Double_t X1, Double_t Y1, Double_t X2, Double_t Y2, const char *Label, Option_t *Option = ""); void ConvertNDCtoPad(); void Paint(Option_t *Option); void SetFixPointAlign(Short_t Align = 11); //set which point of the label is considerd to be fix point (uses same convention than TextAlign) void FixNDCSize(Double_t NDCsizeX = -1., Double_t NDCsizeY = -1.); // if negative convert current user size to ndc, otherwise set size to NDCsizeX * NDCsizeY protected: void CalculateFixPoint(); void GetCoordsFromFixPoint(); bool fInit; Short_t fFixPointAlign; Double_t fFixPointX; //user Double_t fFixPointY; //user Double_t fSizeX; //user Double_t fSizeY; //user bool fFixedNDCSize; Double_t fNDCSizeX; //ndc Double_t fNDCSizeY; //ndc TString fOption; ClassDef(TLabel,1) //TLabel }; #endif //header guard