TPaveLabel.h

Go to the documentation of this file.
00001 // @(#)root/graf:$Id: TPaveLabel.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   17/10/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TPaveLabel
00013 #define ROOT_TPaveLabel
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TPaveLabel                                                           //
00019 //                                                                      //
00020 // PaveLabel  A Pave with a label.                                      //
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;         //Label written at the center of Pave
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;} // *MENU*
00054 
00055    ClassDef(TPaveLabel,1)  //PaveLabel. A Pave with a label
00056 };
00057 
00058 #endif
00059 

Generated on Tue Jul 5 14:14:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1