00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TPaveLabel
00013 #define ROOT_TPaveLabel
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ROOT_TPave
00025 #include "TPave.h"
00026 #endif
00027 #ifndef ROOT_TAttText
00028 #include "TAttText.h"
00029 #endif
00030
00031
00032 class TPaveLabel : public TPave, public TAttText {
00033
00034 protected:
00035 TString fLabel;
00036
00037 public:
00038 TPaveLabel();
00039 TPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, const char *label, Option_t *option="br");
00040 TPaveLabel(const TPaveLabel &pavelabel);
00041 virtual ~TPaveLabel();
00042
00043 void Copy(TObject &pavelabel) const;
00044 virtual void Draw(Option_t *option="");
00045 virtual void DrawPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00046 const char *label, Option_t *option="");
00047 const char *GetLabel() const {return fLabel.Data();}
00048 const char *GetTitle() const {return fLabel.Data();}
00049 virtual void Paint(Option_t *option="");
00050 virtual void PaintPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00051 const char *label, Option_t *option="");
00052 virtual void SavePrimitive(ostream &out, Option_t *option = "");
00053 virtual void SetLabel(const char *label) {fLabel = label;}
00054
00055 ClassDef(TPaveLabel,1)
00056 };
00057
00058 #endif
00059