Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TPaveLabel.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/graf:$Id$
0002 // Author: Rene Brun   17/10/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TPaveLabel
0013 #define ROOT_TPaveLabel
0014 
0015 
0016 #include "TPave.h"
0017 #include "TAttText.h"
0018 
0019 
0020 class TPaveLabel : public TPave, public TAttText {
0021 
0022 protected:
0023    TString      fLabel;         ///< Label written at the center of Pave
0024 
0025 public:
0026    TPaveLabel();
0027    TPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, const char *label, Option_t *option="br");
0028    TPaveLabel(const TPaveLabel &pavelabel);
0029    TPaveLabel& operator=(const TPaveLabel &pavelabel);
0030    ~TPaveLabel() override;
0031 
0032    void                Copy(TObject &pavelabel) const override;
0033    void                Draw(Option_t *option="") override;
0034    virtual TPaveLabel *DrawPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
0035                                      const char *label, Option_t *option="");
0036    const char         *GetLabel() const {return fLabel.Data();}
0037    const char         *GetTitle() const override {return fLabel.Data();}
0038    void                Paint(Option_t *option="") override;
0039    virtual void        PaintPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
0040                                       const char *label, Option_t *option="");
0041    void                SavePrimitive(std::ostream &out, Option_t *option = "") override;
0042    virtual void        SetLabel(const char *label) {fLabel = label;} // *MENU*
0043 
0044    ClassDefOverride(TPaveLabel,1)  //PaveLabel. A Pave with a label
0045 };
0046 
0047 #endif
0048