TPaveText
class description - source file - inheritance tree
    public:
             TPaveText TPaveText(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Option_t* option = br)
             TPaveText TPaveText()
             TPaveText TPaveText(const TPaveText& pavetext)
          virtual void ~TPaveText()
         virtual TBox* AddBox(Float_t x1, Float_t y1, Float_t x2, Float_t y2)
        virtual TLine* AddLine(Float_t x1 = 0, Float_t y1 = 0, Float_t x2 = 0, Float_t y2 = 0)
        virtual TText* AddText(const Text_t* label)
        virtual TText* AddText(Float_t x1, Float_t y1, const Text_t* label)
               TClass* Class()
          virtual void Clear(Option_t* option)
          virtual void Copy(TObject& pavetext)
          virtual void DeleteText()
          virtual void Draw(Option_t* option)
          virtual void DrawFile(const Text_t* filename, Option_t* option)
          virtual void EditText()
         const Text_t* GetLabel() const
        virtual TText* GetLine(Int_t number)
        virtual TText* GetLineWith(const Text_t* text)
        virtual TList* GetListOfLines()
               Float_t GetMargin()
      virtual TObject* GetObject(Float_t& ymouse, Float_t& yobj)
         virtual Int_t GetSize()
          virtual void InsertLine()
          virtual void InsertText(const Text_t* label)
       virtual TClass* IsA() const
          virtual void Paint(Option_t* option)
          virtual void PaintPrimitives(Int_t mode)
          virtual void Print(Option_t* option)
          virtual void ReadFile(const Text_t* filename, Option_t* option, Int_t nlines = 50, Int_t fromline = 0)
          virtual void SaveLines(ofstream& out, const char* name)
          virtual void SavePrimitive(ofstream& out, Option_t* option)
          virtual void SetAllWith(const Text_t* text, Option_t* option, Float_t value)
          virtual void SetLabel(const Text_t* label)
          virtual void SetMargin(Float_t margin = 0.05)
          virtual void ShowMembers(TMemberInspector& insp, char* parent)
          virtual void Streamer(TBuffer& b)
    protected:
      TString fLabel    Label written at the top of the pavetext
        Int_t fLongest  Length of the longest line
      Float_t fMargin   Text margin
       TList* fLines    List of labels
See also
- 
TDiamond, TPaveStats, TPavesText
  A PaveText is a Pave (see TPave) with text,lines or/and boxes.
/*
 */
*/
 TPaveText(): TPave(), TAttText()
*-*-*-*-*-*-*-*-*-*-*pavetext default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =============================
 TPaveText(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t  y2, Option_t *option)
           :TPave(x1,y1,x2,y2,4,option), TAttText(22,0,1,62,0)
*-*-*-*-*-*-*-*-*-*-*pavetext normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================
 a PaveText is a Pave with several lines of text
 The Pave is by default defined bith bordersize=5 and option ="br".
 The individual text items are entered via AddText
 By default, text items inherits from the default pavetext AttText.
 A title can be added later to this pavetext via TPaveText::SetLabel.
 ~TPaveText()
*-*-*-*-*-*-*-*-*-*-*pavetext default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================
 TPaveText(const TPaveText &pavetext)
TBox* AddBox(Float_t x1, Float_t y1, Float_t x2, Float_t y2)
*-*-*-*-*-*-*-*-*Add a new graphics box to this pavetext*-*-*-*-*-*-*-*-*-*
*-*              =======================================
TLine* AddLine(Float_t x1, Float_t y1, Float_t x2, Float_t y2)
*-*-*-*-*-*-*-*-*Add a new graphics line to this pavetext*-*-*-*-*-*-*-*-*-*
*-*              ========================================
TText* AddText(Float_t x1, Float_t y1, const Text_t *text)
*-*-*-*-*Add a new Text line to this pavetext at given coordinates*-*-*-*-*
*-*      =========================================================
TText* AddText(const Text_t *text)
*-*-*-*-*-*-*-*-*Add a new Text line to this pavetext*-*-*-*-*-*-*-*-*-*-*-*
*-*              ====================================
void Clear(Option_t *)
*-*-*-*-*-*-*-*-*-*Clear all lines in this pavetext*-*-*-*-*-*-*-*-*-*
*-*                ================================
void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*Copy this pavetext to pavetext*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ================================
void DeleteText()
*-*-*-*-*-*-*-*-*Delete text at the mouse position*-*-*-*-*-*-*-*-*
*-*              =========================================
void Draw(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this pavetext with its current attributes*-*-*-*-*
*-*                  ===============================================
void DrawFile(const Text_t *filename, Option_t *option)
*-*-*-*-*-*-*-*-*Draw lines in filename in this pavetext*-*-*-*-*-*-*-*
*-*              =======================================
void EditText()
*-*-*-*-*-*-*-*-*Edit text at the mouse position*-*-*-*-*-*-*-*-*
*-*              =========================================
TText* GetLine(Int_t number)
*-*-*-*-*-*-*-*Get Pointer to line number in this pavetext*-*-*-*-*-*-*-*
*-*            ===========================================
TText* GetLineWith(const Text_t *text)
*-*-*-*-*Get Pointer to first containing string text in this pavetext*-*-*-*
*-*      ============================================================
TObject* GetObject(Float_t &ymouse, Float_t &yobj)
*-*-*-*-*Get object pointed by the mouse in this pavetext*-*-*-*
*-*      ================================================
Int_t GetSize()
  return number of text lines (ignoring Tlines, etc)
void InsertLine()
*-*-*-*-*-*-*-*-*Add a new lineine at the mouse position*-*-*-*-*-*-*-*-*
*-*              =======================================
void InsertText(const Text_t *text)
*-*-*-*-*-*-*-*-*Add a new Text line at the mouse position*-*-*-*-*-*-*-*-*
*-*              =========================================
void Paint(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Paint this pavetext with its current attributes*-*-*-*
*-*                  ================================================
void PaintPrimitives(Int_t mode)
*-*-*-*-*-*-*-*Paint list of primitives in this pavetext*-*-*-*-*-*-*-*
*-*            =========================================
void Print(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Dump this pavetext with its attributes*-*-*-*-*-*-*-*
*-*                  =======================================
void ReadFile(const Text_t *filename, Option_t *option, Int_t nlines, Int_t fromline)
*-*-*-*-*-*-*-*-*Read lines of filename in this pavetext*-*-*-*-*-*-*-*-*
*-*              =======================================
  Read from line number fromline a total of nlines
  Note that this function changes the default text alignment to left/center
void SaveLines(ofstream &out, const char *name)
 Save lines of this pavetext as C++ statements on output stream out
void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out
void SetAllWith(const Text_t *text, Option_t *option, Float_t value)
*-*-*-*-*-*Set attribute option for all lines containing string text*-*-*-*-*
*-*        ================= =======================================
 Possible options are all the AttText attributes
       Align, Color, Font, Size and Angle
void Streamer(TBuffer &R__b)
 Stream an object of class TPaveText.
Inline Functions
        const Text_t* GetLabel() const
               TList* GetListOfLines()
              Float_t GetMargin()
                 void SetLabel(const Text_t* label)
                 void SetMargin(Float_t margin = 0.05)
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
Author:     Rene Brun   20/10/95
Last update:   2.23/05 16/10/99  17.35.16  by  Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved.         *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.