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