library: libGraf #include "TPaveLabel.h"

# TPaveLabel

class description - source file - inheritance tree (.pdf)

## class TPaveLabel : public TPave, public TAttText

| Inheritance Chart:

`TObject`

`TAttLine`

`TAttFill`

<-

`TBox`

<-

`TPave`

`TAttText`

<-

`TPaveLabel`

<-

`TPaveClass` |

        public:

                              TPaveLabel()
                              TPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char* label, Option_t* option = "br")
                              TPaveLabel(const TPaveLabel& pavelabel)
                      virtual ~TPaveLabel()
               static TClass* Class()
                 virtual void Copy(TObject& pavelabel) const
                 virtual void Draw(Option_t* option = "")
                 virtual void DrawPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char* label, Option_t* option = "")
                  const char* GetLabel() const
          virtual const char* GetTitle() const
              virtual TClass* IsA() const
                  TPaveLabel& operator=(const TPaveLabel&)
                 virtual void Paint(Option_t* option = "")
                 virtual void PaintPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char* label, Option_t* option = "")
                 virtual void SavePrimitive(ofstream& out, Option_t* option)
                 virtual void SetLabel(const char* label)
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TString fLabel  Label written at the center of Pave

## Class Description

    *  A PaveLabel is a Pave (see TPave) with a text centered in the Pave.

/* */

TPaveLabel(): TPave(), TAttText()

    *-*-*-*-*-*-*-*-*-*-*pavelabel default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  =============================

TPaveLabel(Double_t x1, Double_t y1,Double_t x2, Double_t y2, const char *label, Option_t *option) :TPave(x1,y1,x2,y2,3,option), TAttText(22,0,1,62,0.99)

    *-*-*-*-*-*-*-*-*-*-*pavelabel normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ============================
     a PaveLabel is a Pave with a label centered in the Pave
     The Pave is by default defined bith bordersize=5 and option ="br".
     The text size is automatically computed as a function of the pave size.

      IMPORTANT NOTE:
      Because TPave objects (and objects deriving from TPave) have their
      master coordinate system in NDC, one cannot use the TBox functions
      SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use
      instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC.

~TPaveLabel()

    *-*-*-*-*-*-*-*-*-*-*pavelabel default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ============================

TPaveLabel(const TPaveLabel &pavelabel) : TPave(pavelabel), TAttText(pavelabel)

void Copy(TObject &obj) const

    *-*-*-*-*-*-*-*-*-*-*Copy this pavelabel to pavelabel*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ================================

void Draw(Option_t *option)

    *-*-*-*-*-*-*-*-*-*-*Draw this pavelabel with its current attributes*-*-*-*-*
    *-*                  ===============================================

void DrawPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *label, Option_t *option)

    *-*-*-*-*-*-*-*-*-*-*Draw this pavelabel with new Doubleinates*-*-*-*-*-*-*-*
    *-*                  ========================================

void Paint(Option_t *option)

    *-*-*-*-*-*-*-*-*-*-*Paint this pavelabel with its current attributes*-*-*-*
    *-*                  ================================================

void PaintPaveLabel(Double_t x1, Double_t y1,Double_t x2, Double_t y2, const char *label ,Option_t *option)

    *-*-*-*-*-*-*-*-*-*-*Draw this pavelabel with new coordinates*-*-*-*-*-*-*-*
    *-*                  ========================================

void SavePrimitive(ofstream &out, Option_t *)

     Save primitive as a C++ statement(s) on output stream out

### Inline Functions

            const char* GetLabel() const
            const char* GetTitle() const
                   void SetLabel(const char* label)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
            TPaveLabel& operator=(const TPaveLabel&)

Author: Rene Brun 17/10/95
Last update: root/graf:$Name: $:$Id: TPaveLabel.cxx,v 1.16 2003/12/13 22:56:17 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *