23 class TLegend :
public TPave ,
public TAttText {
26 TLegend& operator=(
const TLegend&);
30 TLegend( Double_t x1, Double_t y1, Double_t x2, Double_t y2,
31 const char* header =
"", Option_t* option=
"brNDC" );
32 TLegend( Double_t w, Double_t h,
const char* header =
"", Option_t* option=
"brNDC" );
34 TLegend(
const TLegend &legend );
36 TLegendEntry *AddEntry(
const TObject* obj,
const char* label =
"", Option_t* option =
"lpf" );
37 TLegendEntry *AddEntry(
const char *name,
const char* label =
"", Option_t* option =
"lpf" );
38 virtual void Clear( Option_t* option =
"" );
39 virtual void Copy( TObject &obj )
const;
40 virtual void DeleteEntry();
41 virtual void Draw( Option_t* option =
"" );
42 virtual void EditEntryAttFill();
43 virtual void EditEntryAttLine();
44 virtual void EditEntryAttMarker();
45 virtual void EditEntryAttText();
46 Float_t GetColumnSeparation()
const {
return fColumnSeparation; }
47 TLegendEntry *GetEntry()
const;
48 Float_t GetEntrySeparation()
const {
return fEntrySeparation; }
49 virtual const char *GetHeader()
const;
50 TList *GetListOfPrimitives()
const {
return fPrimitives;}
51 Float_t GetMargin()
const {
return fMargin; }
52 Int_t GetNColumns()
const {
return fNColumns; }
53 Int_t GetNRows()
const;
54 virtual void InsertEntry(
const char* objectName =
"",
const char* label =
"",
55 Option_t* option =
"lpf" );
56 virtual void Paint( Option_t* option =
"" );
57 virtual void PaintPrimitives();
58 virtual void Print( Option_t* option =
"" )
const;
59 virtual void RecursiveRemove(TObject *obj);
60 virtual void SavePrimitive(std::ostream &out, Option_t *option =
"");
61 void SetDefaults() { fEntrySeparation = 0.1f; fMargin = 0.25f; fNColumns = 1; fColumnSeparation = 0.0f; }
62 void SetColumnSeparation( Float_t columnSeparation )
63 { fColumnSeparation = columnSeparation; }
64 virtual void SetEntryLabel(
const char* label );
65 virtual void SetEntryOption( Option_t* option );
66 void SetEntrySeparation( Float_t entryseparation )
67 { fEntrySeparation = entryseparation; }
68 virtual void SetHeader(
const char *header =
"", Option_t *option =
"" );
69 void SetMargin( Float_t margin ) { fMargin = margin; }
70 void SetNColumns( Int_t nColumns );
74 Float_t fEntrySeparation;
79 Float_t fColumnSeparation;