Logo ROOT   6.08/07
Reference Guide
TPavesText.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Rene Brun 19/11/95
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 
12 #ifndef ROOT_TPavesText
13 #define ROOT_TPavesText
14 
15 
16 #ifndef ROOT_TPaveText
17 #include "TPaveText.h"
18 #endif
19 
20 class TPavesText : public TPaveText {
21 
22 protected:
23  Int_t fNpaves; ///< Number of stacked paves
24 
25 public:
26  TPavesText();
27  TPavesText(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Int_t npaves=5, Option_t *option="br");
28  TPavesText(const TPavesText &pavestext);
29  virtual ~TPavesText();
30 
31  virtual void Draw(Option_t *option="");
32  virtual Int_t GetNpaves() {return fNpaves;}
33  virtual void Paint(Option_t *option="");
34  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
35  virtual void SetNpaves(Int_t npaves=5) {fNpaves=npaves;} // *MENU*
36 
37  ClassDef(TPavesText,1) //Stacked Paves with text strings
38 };
39 
40 #endif
41 
const char Option_t
Definition: RtypesCore.h:62
virtual void SetNpaves(Int_t npaves=5)
Definition: TPavesText.h:35
int Int_t
Definition: RtypesCore.h:41
TPavesText()
Pavestext default constructor.
Definition: TPavesText.cxx:33
virtual void Draw(Option_t *option="")
Draw this pavestext with its current attributes.
Definition: TPavesText.cxx:79
static const double x2[5]
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void Paint(Option_t *option="")
Paint this pavestext with its current attributes.
Definition: TPavesText.cxx:87
virtual ~TPavesText()
Pavestext default destructor.
Definition: TPavesText.cxx:59
static const double x1[5]
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:27
double Double_t
Definition: RtypesCore.h:55
virtual Int_t GetNpaves()
Definition: TPavesText.h:32
Int_t fNpaves
Number of stacked paves.
Definition: TPavesText.h:23
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TPavesText.cxx:118
A PaveText (see TPaveText) with several stacked paves.
Definition: TPavesText.h:20