Logo ROOT   6.12/07
Reference Guide
entrylist_figure1.C
Go to the documentation of this file.
1 {
2  TCanvas *c = new TCanvas("c", "c",213,172,460,253);
3  c->Range(0,0,1,1);
4  c->SetBorderSize(2);
5  c->SetFrameFillColor(0);
6 
7  TPaveText *pt = new TPaveText(0.00518135,0.810811,0.507772,0.989189,"br");
8  pt->SetFillColor(kWhite);
9  pt->SetTextColor(4);
10  TText *text = pt->AddText("TEntryList for a TTree");
11  pt->Draw();
12 
13  pt = new TPaveText(0.0387597,0.483696,0.307494,0.657609,"br");
14  pt->SetFillColor(kWhite);
15  text = pt->AddText("TEntryList");
16  pt->Draw();
17 
18  pt = new TPaveText(0.0363636,0.107527,0.306494,0.489247,"br");
19  pt->SetFillColor(kWhite);
20  pt->SetTextFont(42);
21  text = pt->AddText("fBlocks");
22  text = pt->AddText("fLists = 0");
23  pt->Draw();
24 
25  pt = new TPaveText(0.338501,0.23913,0.627907,0.375,"br");
26  pt->SetBorderSize(1);
27  pt->SetFillColor(kWhite);
28  text = pt->AddText("Info on entries 0-63999");
29  pt->Draw();
30 
31  pt = new TPaveText(0.643411,0.23913,0.989664,0.375,"br");
32  pt->SetBorderSize(1);
33  pt->SetFillColor(kWhite);
34  text = pt->AddText("entries 64000-127999");
35  pt->Draw();
36 
37  pt = new TPaveText(0.423773,0.423913,0.870801,0.576087,"br");
38  pt->SetFillColor(kWhite);
39  text = pt->AddText("TObjArray of TEntryListBlock objects");
40  pt->Draw();
41  TArrow *arrow = new TArrow(0.277202,0.356757,0.418605,0.505435,0.05,">");
42  arrow->SetFillColor(1);
43  arrow->SetFillStyle(1001);
44  arrow->Draw();
45 }
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:234
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition: TPaveText.cxx:183
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition: TAttFill.h:39
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:45
TArrow * arrow
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
Definition: TArrow.cxx:122
Base class for several text objects.
Definition: TText.h:23
Definition: Rtypes.h:58
TPaveText * pt
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
Definition: TPad.cxx:5103
The Canvas class.
Definition: TCanvas.h:31
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:21
TText * text
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition: TAttText.h:43
void SetFrameFillColor(Color_t color=1)
Definition: TAttPad.h:73
virtual void SetBorderSize(Short_t bordersize)
Definition: TPad.h:318
Draw all kinds of Arrows.
Definition: TArrow.h:29
virtual void SetBorderSize(Int_t bordersize=4)
Definition: TPave.h:70