335   if (nlines == 0) nlines = 5;
 
  345   TLatex *latex, *latex_tok;
 
  347   Double_t longest = 0, titlelength = 0;
 
  351      textsize = 0.92*yspace/(y2 - y1);
 
  352      titlesize = textsize;
 
  353      wtok[0] = 0; wtok[1] = 0;
 
  355         if (
line->IsA() == TLatex::Class()) {
 
  358            sl = 
new char[nchs+1];
 
  359            strlcpy(sl, latex->
GetTitle(),nchs+1);
 
  360            if (strpbrk(sl, 
"=") !=0 && print_name == 0) {
 
  361               st = strtok(sl, 
"=");
 
  364                  latex_tok = 
new TLatex(0.,0.,st);
 
  370                  if (w > wtok[itok]) wtok[itok] = w;
 
  375            } 
else if (strpbrk(sl, 
"|") !=0) {
 
  381               titlelength = latex->
GetXsize()+2.*margin;
 
  382               if (titlelength > 0.98*dx) titlesize *= 0.98*dx/titlelength;
 
  385            delete [] sl; sl = 0;
 
  388      longest = wtok[0]+wtok[1]+2.*margin;
 
  389      if (longest > 0.98*dx) textsize *= 0.98*dx/longest;
 
  392      titlesize = textsize;
 
  394   Double_t ytext = y2ref + 0.5*yspace;
 
  402      if (
line->IsA() == TLatex::Class()) {
 
  416         sl = 
new char[nchs+1];
 
  417         strlcpy(sl, latex->
GetTitle(),nchs+1);
 
  419         if (strpbrk(sl, 
"=") !=0 && print_name == 0) {
 
  420            st = strtok(sl, 
"=");
 
  425               if (halign == 12) xtext = x1ref + margin;
 
  427                  xtext = x2ref - margin;
 
  428                  typolabel = typolabel.
Strip();
 
  438         } 
else if (strpbrk(sl, 
"|") !=0) {
 
  443            gPad->PaintLine(x1ref,yline1,x2ref,yline1);
 
  444            gPad->PaintLine(xline1,yline1,xline1,yline2);
 
  445            gPad->PaintLine(xline2,yline1,xline2,yline2);
 
  446            st = strtok(sl, 
"|");
 
  450               if (theIndex == 0) xtext = 0.5*(x1ref+xline1);
 
  451               if (theIndex == 1) xtext = 0.5*(x1ref+x2ref);
 
  452               if (theIndex == 2) xtext = 0.5*(xline2+x2ref);
 
  465            xtext = 0.5*(x1ref+x2ref);
 
  469            gPad->PaintLine(x1ref,y2ref-yspace,x2ref,y2ref-yspace);
 
  487      x1 = x1ref + 0.25*dx;
 
  488      x2 = x2ref - 0.25*dx;
 
  489      y1 = y2ref - 0.02*dy;
 
  490      y2 = y2ref + 0.02*dy;
 
  507   Bool_t saved = 
gROOT->ClassSaved(TPaveStats::Class());
 
  515      <<
","<<quote<<
fOption<<quote<<
");"<<std::endl;
 
  518      <<
","<<quote<<
fOption<<quote<<
");"<<std::endl;
 
  520   if (strcmp(
GetName(),
"TPave")) {
 
  521      out<<
"   ptstats->SetName("<<quote<<
GetName()<<quote<<
");"<<std::endl;
 
  524      out<<
"   ptstats->SetBorderSize("<<
fBorderSize<<
");"<<std::endl;
 
  530   out<<
"   ptstats->SetOptStat("<<
GetOptStat()<<
");"<<std::endl;
 
  531   out<<
"   ptstats->SetOptFit("<<
GetOptFit()<<
");"<<std::endl;
 
  532   out<<
"   ptstats->Draw();"<<std::endl;
 
  538void TPaveStats::Streamer(
TBuffer &R__b)
 
  548      TPaveText::Streamer(R__b);
 
static const double x2[5]
 
static const double x1[5]
 
R__EXTERN TStyle * gStyle
 
virtual Color_t GetFillColor() const
Return the fill area color.
 
virtual Style_t GetFillStyle() const
Return the fill area style.
 
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
 
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
 
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
 
virtual Float_t GetTextSize() const
Return the text size.
 
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
 
virtual Short_t GetTextAlign() const
Return the text alignment.
 
virtual Font_t GetTextFont() const
Return the text font.
 
virtual Color_t GetTextColor() const
Return the text color.
 
virtual Float_t GetTextAngle() const
Return the text angle.
 
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
 
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
 
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
Save text attributes as C++ statement(s) on output stream out.
 
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
 
Double_t fX1
X of 1st point.
 
Double_t fY2
Y of 2nd point.
 
Double_t fX2
X of 2nd point.
 
Double_t fY1
Y of 1st point.
 
Buffer base class used for serializing objects.
 
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
 
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
 
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
 
virtual Int_t GetVersionOwner() const =0
 
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
 
To draw Mathematical Formula.
 
Double_t GetXsize()
Return size of the formula along X in pad coordinates.
 
virtual void PaintLatex(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
Main drawing function.
 
virtual const char * GetTitle() const
Returns title of object.
 
Mother of all ROOT objects.
 
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
 
virtual void RecursiveRemove(TObject *obj)
Recursively remove this object from a list.
 
virtual const char * ClassName() const
Returns name of class to which the object belongs.
 
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
 
@ kInvalidObject
if object ctor succeeded but object should not be used
 
A Pave (see TPave) with a text centered in the Pave.
 
virtual void Paint(Option_t *option="")
Paint this pavelabel with its current attributes.
 
The histogram statistics painter class.
 
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
 
TPaveStats()
TPaveStats default constructor.
 
Int_t GetOptStat() const
Return the stat option.
 
virtual void SetStatFormat(const char *format="6.4g")
Change (i.e. set) the format for printing statistics.
 
void SetOptStat(Int_t stat=1)
Set the stat option.
 
Int_t fOptStat
option Stat
 
TString fFitFormat
Printing format for fit parameters.
 
virtual const char * GetFitFormat() const
 
virtual void SetFitFormat(const char *format="5.4g")
Change (i.e. set) the format for printing fit parameters in statistics box.
 
TObject * fParent
owner of this TPaveStats
 
Int_t GetOptFit() const
Return the fit option.
 
virtual void Paint(Option_t *option="")
Paint the pave stat.
 
virtual void SaveStyle()
Save This TPaveStats options in current style.
 
void SetOptFit(Int_t fit=1)
Set the fit option.
 
virtual const char * GetStatFormat() const
 
virtual ~TPaveStats()
TPaveStats default destructor.
 
TString fStatFormat
Printing format for stats.
 
virtual void UseCurrentStyle()
Replace current attributes by current style.
 
A Pave (see TPave) with text, lines or/and boxes inside.
 
virtual Int_t GetSize() const
return number of text lines (ignoring TLine, etc)
 
TList * fLines
List of labels.
 
virtual void SaveLines(std::ostream &out, const char *name, Bool_t saved)
Save lines of this pavetext as C++ statements on output stream out.
 
TString fLabel
Label written at the top of the pavetext.
 
Float_t fMargin
Text margin.
 
virtual void SetY1NDC(Double_t y1)
 
Double_t GetY2NDC() const
 
Int_t GetBorderSize() const
 
virtual void ConvertNDCtoPad()
Convert pave coordinates from NDC to Pad coordinates.
 
Double_t GetX2NDC() const
 
Int_t fBorderSize
window box bordersize in pixels
 
Double_t fX2NDC
X2 point in NDC coordinates.
 
Double_t GetY1NDC() const
 
Option_t * GetName() const
Returns name of object.
 
virtual void SetBorderSize(Int_t bordersize=4)
 
TString fOption
Pave style.
 
virtual void SetY2NDC(Double_t y2)
 
Double_t fY2NDC
Y2 point in NDC coordinates.
 
Double_t fX1NDC
X1 point in NDC coordinates.
 
Double_t fY1NDC
Y1 point in NDC coordinates.
 
Double_t GetX1NDC() const
 
virtual void PaintPave(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t bordersize=4, Option_t *option="br")
Draw this pave with new coordinates.
 
virtual void SetX1NDC(Double_t x1)
 
virtual void SetX2NDC(Double_t x2)
 
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
 
const char * Data() const
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
Color_t GetStatTextColor() const
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
void SetStatFormat(const char *format="6.4g")
 
Float_t GetStatFontSize() const
 
void SetStatStyle(Style_t style=1001)
 
void SetStatTextColor(Color_t color=1)
 
void SetStatX(Float_t x=0)
 
Color_t GetStatColor() const
 
void SetStatBorderSize(Width_t size=2)
 
void SetStatH(Float_t h=0.1)
 
void SetFitFormat(const char *format="5.4g")
 
Width_t GetStatBorderSize() const
 
void SetStatFontSize(Float_t size=0)
 
void SetStatColor(Color_t color=19)
 
void SetStatW(Float_t w=0.19)
 
void SetStatY(Float_t y=0)
 
Style_t GetStatStyle() const
 
const char * GetFitFormat() const
 
const char * GetStatFormat() const
 
Style_t GetStatFont() const
 
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
 
virtual void SetY(Double_t y)
 
virtual void SetX(Double_t x)
 
Short_t Max(Short_t a, Short_t b)
 
Short_t Min(Short_t a, Short_t b)