31 const char* header =
"",
Option_t* option=
"brNDC" );
54 virtual void InsertEntry(
const char* objectName =
"",
const char* label =
"",
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
Storage class for one entry of a TLegend.
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Clear(Option_t *option="")
Clear all entries in this legend, including the header.
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 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 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
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.
virtual void RecursiveRemove(TObject *obj)
Reset the legend entries pointing to "obj".
TList * GetListOfPrimitives() const
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
virtual void Copy(TObject &obj) const
Copy this legend into "obj".
virtual void EditEntryAttText()
Edit the text attributes for the entry pointed by the mouse.
Int_t GetNColumns() const
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.
virtual void Paint(Option_t *option="")
Paint this legend with its current attributes.
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.
virtual void Print(Option_t *option="") const
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.