12 #ifndef ROOT_TPaveText 13 #define ROOT_TPaveText 68 virtual void SetLabel(
const char *label) {fLabel = label;}
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual void SetLabel(const char *label)
virtual TBox * AddBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Add a new graphics box to this pavetext.
Float_t fMargin
Text margin.
virtual TLine * AddLine(Double_t x1=0, Double_t y1=0, Double_t x2=0, Double_t y2=0)
Add a new graphics line to this pavetext.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void DeleteText()
Delete text at the mouse position.
virtual void UseCurrentStyle()
Replace current attributes by current style.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void InsertText(const char *label)
Add a new Text line at the mouse position.
Float_t GetMargin() const
A TBox with a bordersize and a shadow option.
static const double x2[5]
virtual void DrawFile(const char *filename, Option_t *option="")
Draw lines in filename in this pavetext.
#define ClassDef(name, id)
virtual void Paint(Option_t *option="")
Paint this pavetext with its current attributes.
virtual Int_t GetSize() const
return number of text lines (ignoring TLine, etc)
TList * fLines
List of labels.
TString fLabel
Label written at the top of the pavetext.
virtual TText * GetLine(Int_t number) const
Get Pointer to line number in this pavetext.
virtual void Clear(Option_t *option="")
Clear all lines in this pavetext.
Base class for several text objects.
virtual ~TPaveText()
pavetext default destructor.
const char * GetLabel() const
virtual void ReadFile(const char *filename, Option_t *option="", Int_t nlines=50, Int_t fromline=0)
Read lines of filename in this pavetext.
Int_t fLongest
Length of the longest line.
virtual void InsertLine()
Add a new line at the mouse position.
virtual void EditText()
Edit text at the mouse position.
virtual TText * GetLineWith(const char *text) const
Get Pointer to first containing string text in this pavetext.
virtual TObject * GetObject(Double_t &ymouse, Double_t &yobj) const
Get object pointed by the mouse in this pavetext.
virtual TList * GetListOfLines() const
static const double x1[5]
A Pave (see TPave) with text, lines or/and boxes inside.
virtual void Print(Option_t *option="") const
Dump this pavetext with its attributes.
Mother of all ROOT objects.
virtual void PaintPrimitives(Int_t mode)
Paint list of primitives in this pavetext.
TPaveText & operator=(const TPaveText &)
assignment operator
TPaveText()
pavetext default constructor.
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
Set attribute option for all lines containing string text.
virtual void SetMargin(Float_t margin=0.05)
virtual void SaveLines(std::ostream &out, const char *name)
Save lines of this pavetext as C++ statements on output stream out.
const char * Data() const