43 const char* header =
"",
Option_t* option=
"brNDC" );
65 virtual void InsertEntry(
const char* objectName =
"",
const char* label =
"",
79 virtual void SetHeader(
const char *header =
"" );
virtual void Clear(Option_t *option="")
Clear all entries in this legend, including the header.
Int_t GetNRows() const
Get the number of rows.
virtual void Copy(TObject &obj) const
Copy this legend into "obj".
This class displays a legend box (TPaveText) containing several legend entries.
TList * GetListOfPrimitives() const
virtual void EditEntryAttFill()
Edit the fill attributes for the entry pointed by the mouse.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
Int_t GetNColumns() const
TLegend & operator=(const TLegend &)
Assignment operator.
virtual void EditEntryAttText()
Edit the text attributes for the entry pointed by the mouse.
TLegendEntry * GetEntry() const
Get entry pointed to 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)
Float_t GetColumnSeparation() const
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.
static const double x2[5]
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 void SavePrimitive(std::ostream &out, Option_t *option="")
Save this legend as C++ statements on output stream out to be used with the SaveAs ...
virtual void EditEntryAttLine()
Edit the line attributes for the entry pointed by the mouse.
Float_t GetMargin() const
void SetNColumns(Int_t nColumns)
Set the number of columns for the legend.
Float_t fColumnSeparation
virtual const char * GetHeader() const
Returns the header, which is the title that appears at the top of the legend.
Float_t GetEntrySeparation() const
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.
virtual ~TLegend()
Default destructor.
virtual void SetHeader(const char *header="")
Sets the header, which is the "title" that appears at the top of the legend.
void SetColumnSeparation(Float_t columnSeparation)
virtual void Paint(Option_t *option="")
Paint this legend with its current attributes.
virtual void Print(Option_t *option="") const
Dump this TLegend and its contents.
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.