#include <TLegend.h>
Inheritance diagram for TLegend:
Public Member Functions | |
TLegend () | |
TLegend (Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *header="", Option_t *option="brNDC") | |
virtual | ~TLegend () |
TLegend (const TLegend &legend) | |
TLegendEntry * | AddEntry (const TObject *obj, const char *label="", Option_t *option="lpf") |
TLegendEntry * | AddEntry (const char *name, const char *label="", Option_t *option="lpf") |
virtual void | Clear (Option_t *option="") |
virtual void | Copy (TObject &obj) const |
virtual void | DeleteEntry () |
virtual void | Draw (Option_t *option="") |
virtual void | EditEntryAttFill () |
virtual void | EditEntryAttLine () |
virtual void | EditEntryAttMarker () |
virtual void | EditEntryAttText () |
Float_t | GetColumnSeparation () const |
TLegendEntry * | GetEntry () const |
Float_t | GetEntrySeparation () const |
virtual const char * | GetHeader () const |
TList * | GetListOfPrimitives () const |
Float_t | GetMargin () const |
Int_t | GetNColumns () const |
Int_t | GetNRows () const |
virtual void | InsertEntry (const char *objectName="", const char *label="", Option_t *option="lpf") |
virtual void | Paint (Option_t *option="") |
virtual void | PaintPrimitives () |
virtual void | Print (Option_t *option="") const |
virtual void | RecursiveRemove (TObject *obj) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
void | SetDefaults () |
void | SetColumnSeparation (Float_t columnSeparation) |
virtual void | SetEntryLabel (const char *label) |
virtual void | SetEntryOption (Option_t *option) |
void | SetEntrySeparation (Float_t entryseparation) |
virtual void | SetHeader (const char *header="") |
void | SetMargin (Float_t margin) |
void | SetNColumns (Int_t nColumns) |
TLegend () | |
TLegend (Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *header="", Option_t *option="brNDC") | |
virtual | ~TLegend () |
TLegend (const TLegend &legend) | |
TLegendEntry * | AddEntry (const TObject *obj, const char *label="", Option_t *option="lpf") |
TLegendEntry * | AddEntry (const char *name, const char *label="", Option_t *option="lpf") |
virtual void | Clear (Option_t *option="") |
virtual void | Copy (TObject &obj) const |
virtual void | DeleteEntry () |
virtual void | Draw (Option_t *option="") |
virtual void | EditEntryAttFill () |
virtual void | EditEntryAttLine () |
virtual void | EditEntryAttMarker () |
virtual void | EditEntryAttText () |
Float_t | GetColumnSeparation () const |
TLegendEntry * | GetEntry () const |
Float_t | GetEntrySeparation () const |
virtual const char * | GetHeader () const |
TList * | GetListOfPrimitives () const |
Float_t | GetMargin () const |
Int_t | GetNColumns () const |
Int_t | GetNRows () const |
virtual void | InsertEntry (const char *objectName="", const char *label="", Option_t *option="lpf") |
virtual void | Paint (Option_t *option="") |
virtual void | PaintPrimitives () |
virtual void | Print (Option_t *option="") const |
virtual void | RecursiveRemove (TObject *obj) |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
void | SetDefaults () |
void | SetColumnSeparation (Float_t columnSeparation) |
virtual void | SetEntryLabel (const char *label) |
virtual void | SetEntryOption (Option_t *option) |
void | SetEntrySeparation (Float_t entryseparation) |
virtual void | SetHeader (const char *header="") |
void | SetMargin (Float_t margin) |
void | SetNColumns (Int_t nColumns) |
Protected Member Functions | |
TLegend & | operator= (const TLegend &) |
TLegend & | operator= (const TLegend &) |
Protected Attributes | |
TList * | fPrimitives |
Float_t | fEntrySeparation |
Float_t | fMargin |
Int_t | fNColumns |
Float_t | fColumnSeparation |
TList * | fPrimitives |
Definition at line 35 of file TLegend.h.
TLegend::TLegend | ( | ) |
TLegend::TLegend | ( | Double_t | x1, | |
Double_t | y1, | |||
Double_t | x2, | |||
Double_t | y2, | |||
const char * | header = "" , |
|||
Option_t * | option = "brNDC" | |||
) |
Definition at line 151 of file TLegend.cxx.
References TList::AddFirst(), fPrimitives, TStyle::GetLegendBorderSize(), gStyle, TPave::SetBorderSize(), SetDefaults(), TAttText::SetTextAlign(), TAttText::SetTextAngle(), TAttText::SetTextColor(), TAttText::SetTextFont(), and TAttText::SetTextSize().
TLegend::~TLegend | ( | ) | [virtual] |
TLegend::TLegend | ( | const TLegend & | legend | ) |
Definition at line 183 of file TLegend.cxx.
References TList::Add(), fPrimitives, legend, and TListIter::Next().
TLegend::TLegend | ( | ) |
TLegend::TLegend | ( | Double_t | x1, | |
Double_t | y1, | |||
Double_t | x2, | |||
Double_t | y2, | |||
const char * | header = "" , |
|||
Option_t * | option = "brNDC" | |||
) |
virtual TLegend::~TLegend | ( | ) | [virtual] |
TLegend::TLegend | ( | const TLegend & | legend | ) |
Definition at line 203 of file TLegend.cxx.
References fEntrySeparation, fMargin, fNColumns, fPrimitives, and TBox::operator=().
TLegendEntry * TLegend::AddEntry | ( | const TObject * | obj, | |
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) |
Definition at line 235 of file TLegend.cxx.
References TList::Add(), and fPrimitives.
Referenced by AddEntry(), RooStats::SamplingDistPlot::AddLine(), RooStats::SamplingDistPlot::AddSamplingDistribution(), annconvergencetest(), Bessel(), binarySearchTime(), boostcontrolplots(), TPad::BuildLegend(), cernstaff(), compareanapp(), compareClassApp(), doFit(), TProofProgressMemoryPlot::DoPlot(), double32(), TMemStat::Draw(), Draw_PerfProfiles(), DrawData(), TMLPAnalyzer::DrawDInputs(), StatDialogMVAEffs::DrawHistograms(), DrawMLPoutputMovie(), TMLPAnalyzer::DrawNetwork(), TMLPAnalyzer::DrawTruthDeviationInsOut(), TMLPAnalyzer::DrawTruthDeviations(), exampleTKDE(), fitLinear(), fitLinearRobust(), FittingDemo(), GAMinTutorial(), Legendre(), LegendreAssoc(), likelihoodrefs(), TPie::MakeLegend(), mathBeta(), mathGammaNormal(), mathLaplace(), mathStudent(), mlpHiggs(), mvas(), mvasMulticlass(), normalDist(), performance(), piRandom(), plot(), plot_efficiencies(), portfolio(), probas(), quantiles(), regression_averagedevs(), rulevisCorr(), rulevisHists(), stdsort(), TestBinomial(), testPermute(), testSpecFuncBeta(), testSpecFuncBetaI(), testSpecFuncErf(), testSpecFuncGamma(), th2polyEurope(), TMultiLayerPerceptron::Train(), TSVDUnfoldExample(), variables(), and variablesMultiClass().
TLegendEntry * TLegend::AddEntry | ( | const char * | name, | |
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) |
void TLegend::Clear | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 307 of file TLegend.cxx.
References TList::Delete(), and fPrimitives.
Referenced by TPie::MakeLegend().
void TLegend::Copy | ( | TObject & | obj | ) | const [virtual] |
Reimplemented from TPave.
Definition at line 319 of file TLegend.cxx.
References TPave::Copy(), TAttText::Copy(), fEntrySeparation, fMargin, and fNColumns.
void TLegend::DeleteEntry | ( | ) | [virtual] |
Definition at line 334 of file TLegend.cxx.
References entry, fPrimitives, GetEntry(), and TList::Remove().
void TLegend::Draw | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TPave.
Definition at line 349 of file TLegend.cxx.
References TObject::AppendPad().
Referenced by annconvergencetest(), Bessel(), binarySearchTime(), boostcontrolplots(), TPad::BuildLegend(), cernstaff(), compareanapp(), compareClassApp(), doFit(), TProofProgressMemoryPlot::DoPlot(), double32(), TMemStat::Draw(), Draw_PerfProfiles(), DrawData(), TMLPAnalyzer::DrawDInputs(), StatDialogMVAEffs::DrawHistograms(), DrawMLPoutputMovie(), TMLPAnalyzer::DrawNetwork(), TMLPAnalyzer::DrawTruthDeviationInsOut(), TMLPAnalyzer::DrawTruthDeviations(), exampleTKDE(), fitLinear(), fitLinearRobust(), FittingDemo(), GAMinTutorial(), Legendre(), LegendreAssoc(), likelihoodrefs(), TPie::MakeLegend(), mathBeta(), mathGammaNormal(), mathLaplace(), mathStudent(), mlpHiggs(), mvas(), mvasMulticlass(), normalDist(), performance(), pirndm(), plot(), plot_efficiencies(), portfolio(), probas(), quantiles(), regression_averagedevs(), rulevisCorr(), rulevisHists(), stdsort(), TestBinomial(), testPermute(), testSpecFuncBeta(), testSpecFuncBetaI(), testSpecFuncErf(), testSpecFuncGamma(), th2polyEurope(), TMultiLayerPerceptron::Train(), TSVDUnfoldExample(), variables(), and variablesMultiClass().
void TLegend::EditEntryAttFill | ( | ) | [virtual] |
Definition at line 360 of file TLegend.cxx.
References entry, GetEntry(), gROOT, and TROOT::SetSelectedPrimitive().
void TLegend::EditEntryAttLine | ( | ) | [virtual] |
Definition at line 374 of file TLegend.cxx.
References entry, GetEntry(), gROOT, and TROOT::SetSelectedPrimitive().
void TLegend::EditEntryAttMarker | ( | ) | [virtual] |
Definition at line 388 of file TLegend.cxx.
References entry, GetEntry(), gROOT, and TROOT::SetSelectedPrimitive().
void TLegend::EditEntryAttText | ( | ) | [virtual] |
Definition at line 402 of file TLegend.cxx.
References entry, GetEntry(), gROOT, and TROOT::SetSelectedPrimitive().
Float_t TLegend::GetColumnSeparation | ( | ) | const [inline] |
TLegendEntry * TLegend::GetEntry | ( | ) | const |
Definition at line 416 of file TLegend.cxx.
References entry, fPrimitives, TBox::fY1, TBox::fY2, GetNRows(), and gPad.
Referenced by DeleteEntry(), EditEntryAttFill(), EditEntryAttLine(), EditEntryAttMarker(), EditEntryAttText(), InsertEntry(), SetEntryLabel(), and SetEntryOption().
Float_t TLegend::GetEntrySeparation | ( | ) | const [inline] |
const char * TLegend::GetHeader | ( | ) | const [virtual] |
Definition at line 441 of file TLegend.cxx.
References TString::Contains(), fPrimitives, and TString::ToLower().
Referenced by GetNRows().
TList* TLegend::GetListOfPrimitives | ( | ) | const [inline] |
Float_t TLegend::GetMargin | ( | ) | const [inline] |
Int_t TLegend::GetNColumns | ( | ) | const [inline] |
Int_t TLegend::GetNRows | ( | ) | const |
Definition at line 497 of file TLegend.cxx.
References TMath::Ceil(), fNColumns, fPrimitives, GetHeader(), TCollection::GetSize(), and NULL.
Referenced by GetEntry(), and PaintPrimitives().
void TLegend::InsertEntry | ( | const char * | objectName = "" , |
|
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) | [virtual] |
Definition at line 461 of file TLegend.cxx.
References TList::Add(), TList::AddBefore(), fPrimitives, GetEntry(), and gPad.
void TLegend::Paint | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TPave.
Definition at line 484 of file TLegend.cxx.
References TPave::ConvertNDCtoPad(), TBox::fX1, TBox::fX2, TBox::fY1, TBox::fY2, TPave::GetBorderSize(), TPave::PaintPave(), and PaintPrimitives().
void TLegend::PaintPrimitives | ( | ) | [virtual] |
Definition at line 535 of file TLegend.cxx.
References xmlio::Class, TString::Contains(), entry, fColumnSeparation, fEntrySeparation, fMargin, fNColumns, fPrimitives, TBox::fX1, TPave::fX1NDC, TBox::fX2, TPave::fX2NDC, TPave::fY1NDC, TPave::fY2NDC, TLegendEntry::GetLabel(), GetNRows(), TLegendEntry::GetOption(), TAttText::GetTextAlign(), TAttText::GetTextAngle(), TAttText::GetTextColor(), TAttText::GetTextFont(), TAttText::GetTextSize(), gPad, i, TObject::InheritsFrom(), TLine::kLineNDC, TMath::Min(), TLine::Paint(), TMarker::Paint(), TLine::PaintLineNDC(), TObject::SetBit(), TMarker::SetNDC(), TAttText::SetTextSize(), TString::ToLower(), x, x1, x2, and y.
Referenced by Paint().
void TLegend::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TPave.
Definition at line 783 of file TLegend.cxx.
References fPrimitives, TPave::Print(), and TCollection::Print().
void TLegend::RecursiveRemove | ( | TObject * | obj | ) | [virtual] |
Reimplemented from TObject.
Definition at line 795 of file TLegend.cxx.
References entry, and fPrimitives.
void TLegend::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TPave.
Definition at line 810 of file TLegend.cxx.
References xmlio::Class, TROOT::ClassSaved(), entry, TPave::fBorderSize, TPave::fOption, fPrimitives, TPave::GetX1NDC(), TPave::GetX2NDC(), TPave::GetY1NDC(), TPave::GetY2NDC(), gROOT, TAttFill::SaveFillAttributes(), TAttLine::SaveLineAttributes(), and TAttText::SaveTextAttributes().
void TLegend::SetDefaults | ( | ) | [inline] |
Definition at line 72 of file TLegend.h.
References fColumnSeparation, fEntrySeparation, fMargin, and fNColumns.
Referenced by TLegend().
void TLegend::SetColumnSeparation | ( | Float_t | columnSeparation | ) | [inline] |
void TLegend::SetEntryLabel | ( | const char * | label | ) | [virtual] |
void TLegend::SetEntryOption | ( | Option_t * | option | ) | [virtual] |
void TLegend::SetEntrySeparation | ( | Float_t | entryseparation | ) | [inline] |
void TLegend::SetHeader | ( | const char * | header = "" |
) | [virtual] |
Definition at line 868 of file TLegend.cxx.
References TList::AddFirst(), TString::Contains(), fPrimitives, TAttText::GetTextFont(), and TString::ToLower().
Referenced by TProofProgressMemoryPlot::DoPlot(), and plot_efficiencies().
void TLegend::SetMargin | ( | Float_t | margin | ) | [inline] |
Definition at line 80 of file TLegend.h.
References fMargin.
Referenced by annconvergencetest(), boostcontrolplots(), compareanapp(), compareClassApp(), StatDialogMVAEffs::DrawHistograms(), DrawMLPoutputMovie(), mvas(), mvasMulticlass(), plot(), plot_efficiencies(), probas(), regression_averagedevs(), rulevisCorr(), rulevisHists(), variables(), and variablesMultiClass().
void TLegend::SetNColumns | ( | Int_t | nColumns | ) |
TLegendEntry* TLegend::AddEntry | ( | const TObject * | obj, | |
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) |
TLegendEntry* TLegend::AddEntry | ( | const char * | name, | |
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) |
virtual void TLegend::DeleteEntry | ( | ) | [virtual] |
virtual void TLegend::EditEntryAttFill | ( | ) | [virtual] |
virtual void TLegend::EditEntryAttLine | ( | ) | [virtual] |
virtual void TLegend::EditEntryAttMarker | ( | ) | [virtual] |
virtual void TLegend::EditEntryAttText | ( | ) | [virtual] |
Float_t TLegend::GetColumnSeparation | ( | ) | const [inline] |
TLegendEntry* TLegend::GetEntry | ( | ) | const |
Float_t TLegend::GetEntrySeparation | ( | ) | const [inline] |
virtual const char* TLegend::GetHeader | ( | ) | const [virtual] |
TList* TLegend::GetListOfPrimitives | ( | ) | const [inline] |
Float_t TLegend::GetMargin | ( | ) | const [inline] |
Int_t TLegend::GetNColumns | ( | ) | const [inline] |
Int_t TLegend::GetNRows | ( | ) | const |
virtual void TLegend::InsertEntry | ( | const char * | objectName = "" , |
|
const char * | label = "" , |
|||
Option_t * | option = "lpf" | |||
) | [virtual] |
virtual void TLegend::PaintPrimitives | ( | ) | [virtual] |
virtual void TLegend::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TPave.
void TLegend::SetDefaults | ( | ) | [inline] |
Definition at line 72 of file TLegend.h.
References fColumnSeparation, fEntrySeparation, fMargin, and fNColumns.
void TLegend::SetColumnSeparation | ( | Float_t | columnSeparation | ) | [inline] |
virtual void TLegend::SetEntryLabel | ( | const char * | label | ) | [virtual] |
virtual void TLegend::SetEntryOption | ( | Option_t * | option | ) | [virtual] |
void TLegend::SetEntrySeparation | ( | Float_t | entryseparation | ) | [inline] |
virtual void TLegend::SetHeader | ( | const char * | header = "" |
) | [virtual] |
void TLegend::SetMargin | ( | Float_t | margin | ) | [inline] |
void TLegend::SetNColumns | ( | Int_t | nColumns | ) |
TList* TLegend::fPrimitives [protected] |
Definition at line 84 of file TLegend.h.
Referenced by AddEntry(), Clear(), DeleteEntry(), GetEntry(), GetHeader(), GetListOfPrimitives(), GetNRows(), InsertEntry(), operator=(), PaintPrimitives(), Print(), RecursiveRemove(), SavePrimitive(), SetHeader(), TLegend(), and ~TLegend().
Float_t TLegend::fEntrySeparation [protected] |
Definition at line 85 of file TLegend.h.
Referenced by Copy(), GetEntrySeparation(), operator=(), PaintPrimitives(), SetDefaults(), and SetEntrySeparation().
Float_t TLegend::fMargin [protected] |
Definition at line 88 of file TLegend.h.
Referenced by Copy(), GetMargin(), operator=(), PaintPrimitives(), SetDefaults(), and SetMargin().
Int_t TLegend::fNColumns [protected] |
Definition at line 89 of file TLegend.h.
Referenced by Copy(), GetNColumns(), GetNRows(), operator=(), PaintPrimitives(), SetDefaults(), and SetNColumns().
Float_t TLegend::fColumnSeparation [protected] |
Definition at line 90 of file TLegend.h.
Referenced by GetColumnSeparation(), PaintPrimitives(), SetColumnSeparation(), and SetDefaults().
TList* TLegend::fPrimitives [protected] |