// @(#)root/graf:$Id$
// Author: Rene Brun   19/11/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TPavesText
#define ROOT_TPavesText


#include "TPaveText.h"

class TPavesText : public TPaveText {

protected:
   Int_t      fNpaves;        ///< Number of stacked paves

public:
   TPavesText();
   TPavesText(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Int_t npaves=5, Option_t *option="br");
   TPavesText(const TPavesText &pavestext);
   ~TPavesText() override;

   void          Draw(Option_t *option="") override;
   virtual Int_t GetNpaves() {return fNpaves;}
   void          Paint(Option_t *option="") override;
   void          SavePrimitive(std::ostream &out, Option_t *option = "") override;
   virtual void  SetNpaves(Int_t npaves=5) {fNpaves=npaves;} // *MENU*

   ClassDefOverride(TPavesText,1)  //Stacked Paves with text strings
};

#endif

