54 virtual void InsertEntry(
const char* objectName =
"",
const char* label =
"",
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
Storage class for one entry of a TLegend.
This class displays a legend box (TPaveText) containing several legend entries.
void Copy(TObject &obj) const override
Copy this legend into "obj".
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
void SetNColumns(Int_t nColumns)
Set the number of columns for the legend.
virtual void SetHeader(const char *header="", Option_t *option="")
Sets the header, which is the "title" that appears at the top of the legend.
virtual void DeleteEntry()
Delete entry at the mouse position.
TLegendEntry * GetEntry() const
Get entry pointed to by the mouse.
Float_t GetColumnSeparation() const
void Clear(Option_t *option="") override
Clear all entries in this legend, including the header.
Float_t fEntrySeparation
Separation between entries, as a fraction of The space allocated to one entry.
void SetEntrySeparation(Float_t entryseparation)
virtual void EditEntryAttMarker()
Edit the marker attributes for the entry pointed by the mouse.
TList * GetListOfPrimitives() const
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save this legend as C++ statements on output stream out to be used with the SaveAs ....
virtual void EditEntryAttText()
Edit the text attributes for the entry pointed by the mouse.
void Paint(Option_t *option="") override
Paint this legend with its current attributes.
Int_t GetNColumns() const
void RecursiveRemove(TObject *obj) override
Reset the legend entries pointing to "obj".
Float_t fMargin
Fraction of total width used for symbol.
Int_t GetNRows() const
Get the number of rows.
TList * fPrimitives
List of TLegendEntries.
virtual ~TLegend()
Default destructor.
Int_t fNColumns
Number of columns in the legend.
Float_t fColumnSeparation
Separation between columns, as a fraction of The space allowed to one column.
Float_t GetEntrySeparation() const
TLegend()
Default constructor.
virtual void EditEntryAttLine()
Edit the line attributes for the entry pointed by the mouse.
virtual void SetEntryOption(Option_t *option)
Edit the option of the entry pointed to by the mouse.
TLegend & operator=(const TLegend &)
Assignment operator.
virtual void SetEntryLabel(const char *label)
Edit the label of the entry pointed to by the mouse.
void Print(Option_t *option="") const override
Dump this TLegend and its contents.
void SetMargin(Float_t margin)
virtual void PaintPrimitives()
Paint the entries (list of primitives) for this legend.
virtual void EditEntryAttFill()
Edit the fill attributes for the entry pointed by the mouse.
virtual const char * GetHeader() const
Returns the header, which is the title that appears at the top of the legend.
virtual void InsertEntry(const char *objectName="", const char *label="", Option_t *option="lpf")
Add a new entry before the entry at the mouse position.
Float_t GetMargin() const
void SetColumnSeparation(Float_t columnSeparation)
Mother of all ROOT objects.
A TBox with a bordersize and a shadow option.