TPaveText
class description - source file - inheritance tree
public:
TPaveText TPaveText()
TPaveText TPaveText(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Option_t* option = br)
TPaveText TPaveText(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(Float_t x1, Float_t y1, Text_t* label)
virtual TText* AddText(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(Text_t* filename, Option_t* option)
virtual void EditText()
virtual TText* GetLine(Int_t number)
virtual TText* GetLineWith(Text_t* text)
virtual TList* GetListOfLines()
Float_t GetMargin()
virtual TObject* GetObject()
virtual void InsertText(Text_t* label)
virtual TClass* IsA()
virtual void Paint(Option_t* option)
virtual void PaintPrimitives(Int_t mode)
virtual void Print(Option_t* option)
virtual void ReadFile(Text_t* filename, Option_t* option, Int_t nlines = 50, Int_t fromline = 0)
virtual void SaveLines(ofstream& out, char* name)
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void SetAllWith(Text_t* text, Option_t* option, Float_t value)
virtual void SetMargin(Float_t margin = 0.05)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
protected:
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.
~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()
*-*-*-*-*Get object pointed by the mouse in this pavetext*-*-*-*
*-* ================================================
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, 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
Inline Functions
TList* GetListOfLines()
Float_t GetMargin()
void SetMargin(Float_t margin = 0.05)
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
Author: Rene Brun 20/10/95
Last update: 2.22/01 23/04/99 11.01.11 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.