Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TPaveStats.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Rene Brun 15/03/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 #ifndef ROOT_TPaveStats
12 #define ROOT_TPaveStats
13 
14 
15 #include "TPaveText.h"
16 
17 
18 class TPaveStats : public TPaveText {
19 
20 protected:
21  Int_t fOptFit; ///< option Fit
22  Int_t fOptStat; ///< option Stat
23  TString fFitFormat; ///< Printing format for fit parameters
24  TString fStatFormat; ///< Printing format for stats
25  TObject *fParent; ///< owner of this TPaveStats
26 
27 public:
28  TPaveStats();
29  TPaveStats(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Option_t *option="br");
30  virtual ~TPaveStats();
31  virtual TBox *AddBox(Double_t , Double_t , Double_t , Double_t) {return 0;}
32  virtual TLine *AddLine(Double_t , Double_t , Double_t, Double_t) {return 0;}
33  virtual void DeleteText() { }
34  virtual void EditText() { }
35  virtual const char *GetFitFormat() const {return fFitFormat.Data();}
36  virtual const char *GetStatFormat() const {return fStatFormat.Data();}
37  Int_t GetOptFit() const;
38  Int_t GetOptStat() const;
39  TObject *GetParent() const {return fParent;}
40  virtual void Paint(Option_t *option="");
41  virtual void InsertText(const char *) { }
42  virtual void InsertLine() { }
43  virtual void ReadFile(const char *, Option_t *, Int_t, Int_t) { }
44  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
45  virtual void SaveStyle(); // *MENU*
46  virtual void SetAllWith(const char *, Option_t *, Double_t) { }
47  virtual void SetMargin(Float_t) { }
48  virtual void SetFitFormat(const char *format="5.4g"); // *MENU*
49  virtual void SetStatFormat(const char *format="6.4g"); // *MENU*
50  void SetOptFit(Int_t fit=1); // *MENU*
51  void SetOptStat(Int_t stat=1); // *MENU*
52  void SetParent(TObject*obj) {fParent = obj;}
53  virtual void UseCurrentStyle();
54 
55  ClassDef(TPaveStats,4) //A special TPaveText to draw histogram statistics.
56 };
57 
58 #endif