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