00001 // @(#)root/graf:$Id: TPavesText.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Rene Brun 19/11/95 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TPavesText 00013 #define ROOT_TPavesText 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TPavesText // 00019 // // 00020 // PavesText A PaveText with a number of stacked paves. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_TPaveText 00025 #include "TPaveText.h" 00026 #endif 00027 00028 class TPavesText : public TPaveText { 00029 00030 protected: 00031 Int_t fNpaves; //Number of stacked paves 00032 00033 public: 00034 TPavesText(); 00035 TPavesText(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Int_t npaves=5, Option_t *option="br"); 00036 TPavesText(const TPavesText &pavestext); 00037 virtual ~TPavesText(); 00038 00039 virtual void Draw(Option_t *option=""); 00040 virtual Int_t GetNpaves() {return fNpaves;} 00041 virtual void Paint(Option_t *option=""); 00042 virtual void SavePrimitive(ostream &out, Option_t *option = ""); 00043 virtual void SetNpaves(Int_t npaves=5) {fNpaves=npaves;} // *MENU* 00044 00045 ClassDef(TPavesText,1) //Stacked Paves with text strings 00046 }; 00047 00048 #endif 00049