TPaveStats.h

Go to the documentation of this file.
00001 // @(#)root/graf:$Id: TPaveStats.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   15/03/99
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 #ifndef ROOT_TPaveStats
00012 #define ROOT_TPaveStats
00013 
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TPaveStats                                                           //
00018 //                                                                      //
00019 // a special TPaveText to draw histogram statistics                     //
00020 //                                                                      //
00021 //////////////////////////////////////////////////////////////////////////
00022 
00023 #ifndef ROOT_TPaveText
00024 #include "TPaveText.h"
00025 #endif
00026 
00027 
00028 class TPaveStats : public TPaveText {
00029 
00030 protected:
00031    Int_t         fOptFit;            //option Fit
00032    Int_t         fOptStat;           //option Stat
00033    TString       fFitFormat;         //Printing format for fit parameters
00034    TString       fStatFormat;        //Printing format for stats
00035    TObject      *fParent;            //owner of this TPaveStats
00036 
00037 public:
00038    TPaveStats();
00039    TPaveStats(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Option_t *option="br");
00040    virtual ~TPaveStats();
00041    virtual TBox    *AddBox(Double_t , Double_t , Double_t , Double_t) {return 0;}
00042    virtual TLine   *AddLine(Double_t , Double_t , Double_t, Double_t) {return 0;}
00043    virtual void     DeleteText() { }
00044    virtual void     EditText() { }
00045    virtual const char  *GetFitFormat()  const {return fFitFormat.Data();}
00046    virtual const char  *GetStatFormat() const {return fStatFormat.Data();}
00047    Int_t            GetOptFit() const;
00048    Int_t            GetOptStat() const;
00049    TObject         *GetParent() const {return fParent;}
00050    virtual void     Paint(Option_t *option="");
00051    virtual void     InsertText(const char *) { }
00052    virtual void     InsertLine() { }
00053    virtual void     ReadFile(const char *, Option_t *, Int_t, Int_t) { }
00054    virtual void     SavePrimitive(ostream &out, Option_t *option = "");
00055    virtual void     SaveStyle(); // *MENU*
00056    virtual void     SetAllWith(const char *, Option_t *, Double_t) { }
00057    virtual void     SetMargin(Float_t) { }
00058    virtual void     SetFitFormat(const char *format="5.4g");    // *MENU*
00059    virtual void     SetStatFormat(const char *format="6.4g");   // *MENU*
00060    void             SetOptFit(Int_t fit=1);                     // *MENU*
00061    void             SetOptStat(Int_t stat=1);                   // *MENU*
00062    void             SetParent(TObject*obj) {fParent = obj;}
00063    virtual void     UseCurrentStyle();
00064 
00065    ClassDef(TPaveStats,4)  //A special TPaveText to draw histogram statistics.
00066 };
00067 
00068 #endif

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