Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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();
26 TPavesText(const TPavesText &pavestext);
27 virtual ~TPavesText();
28
29 void Draw(Option_t *option="") override;
30 virtual Int_t GetNpaves() {return fNpaves;}
31 void Paint(Option_t *option="") override;
32 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
33 virtual void SetNpaves(Int_t npaves=5) {fNpaves=npaves;} // *MENU*
34
35 ClassDefOverride(TPavesText,1) //Stacked Paves with text strings
36};
37
38#endif
39
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
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
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Paint(Option_t *option="") override
Paint this pavestext with its current attributes.
virtual ~TPavesText()
Pavestext default destructor.
virtual Int_t GetNpaves()
Definition TPavesText.h:30
Int_t fNpaves
Number of stacked paves.
Definition TPavesText.h:21
virtual void SetNpaves(Int_t npaves=5)
Definition TPavesText.h:33
TPavesText()
Pavestext default constructor.
th1 Draw()