TLegend Class Reference

#include <TLegend.h>

Inheritance diagram for TLegend:

TPave TAttText TPave TAttText TBox TBox TBox TBox TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject TAttFill TAttLine TObject List of all members.

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)
TLegendEntryAddEntry (const TObject *obj, const char *label="", Option_t *option="lpf")
TLegendEntryAddEntry (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
TLegendEntryGetEntry () const
Float_t GetEntrySeparation () const
virtual const char * GetHeader () const
TListGetListOfPrimitives () 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)
TLegendEntryAddEntry (const TObject *obj, const char *label="", Option_t *option="lpf")
TLegendEntryAddEntry (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
TLegendEntryGetEntry () const
Float_t GetEntrySeparation () const
virtual const char * GetHeader () const
TListGetListOfPrimitives () 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

TLegendoperator= (const TLegend &)
TLegendoperator= (const TLegend &)

Protected Attributes

TListfPrimitives
Float_t fEntrySeparation
Float_t fMargin
Int_t fNColumns
Float_t fColumnSeparation
TListfPrimitives

Detailed Description

Definition at line 35 of file TLegend.h.


Constructor & Destructor Documentation

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]

Definition at line 222 of file TLegend.cxx.

References TList::Delete(), and fPrimitives.

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  ) 


Member Function Documentation

TLegend & TLegend::operator= ( const TLegend  )  [protected]

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" 
)

Definition at line 262 of file TLegend.cxx.

References AddEntry(), xmlio::Class, gPad, and o.

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]

Definition at line 57 of file TLegend.h.

References fColumnSeparation.

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]

Definition at line 59 of file TLegend.h.

References fEntrySeparation.

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]

Definition at line 61 of file TLegend.h.

References fPrimitives.

Float_t TLegend::GetMargin (  )  const [inline]

Definition at line 62 of file TLegend.h.

References fMargin.

Int_t TLegend::GetNColumns (  )  const [inline]

Definition at line 63 of file TLegend.h.

References fNColumns.

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]

Definition at line 73 of file TLegend.h.

References fColumnSeparation.

void TLegend::SetEntryLabel ( const char *  label  )  [virtual]

Definition at line 844 of file TLegend.cxx.

References entry, and GetEntry().

void TLegend::SetEntryOption ( Option_t option  )  [virtual]

Definition at line 856 of file TLegend.cxx.

References entry, and GetEntry().

void TLegend::SetEntrySeparation ( Float_t  entryseparation  )  [inline]

Definition at line 77 of file TLegend.h.

References fEntrySeparation.

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  ) 

Definition at line 516 of file TLegend.cxx.

References fNColumns, and TObject::Warning().

TLegend& TLegend::operator= ( const TLegend  )  [protected]

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::Clear ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TLegend::Copy ( TObject obj  )  const [virtual]

Reimplemented from TPave.

virtual void TLegend::DeleteEntry (  )  [virtual]

virtual void TLegend::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TPave.

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]

Definition at line 57 of file TLegend.h.

References fColumnSeparation.

TLegendEntry* TLegend::GetEntry (  )  const

Float_t TLegend::GetEntrySeparation (  )  const [inline]

Definition at line 59 of file TLegend.h.

References fEntrySeparation.

virtual const char* TLegend::GetHeader (  )  const [virtual]

TList* TLegend::GetListOfPrimitives (  )  const [inline]

Definition at line 61 of file TLegend.h.

References fPrimitives.

Float_t TLegend::GetMargin (  )  const [inline]

Definition at line 62 of file TLegend.h.

References fMargin.

Int_t TLegend::GetNColumns (  )  const [inline]

Definition at line 63 of file TLegend.h.

References fNColumns.

Int_t TLegend::GetNRows (  )  const

virtual void TLegend::InsertEntry ( const char *  objectName = "",
const char *  label = "",
Option_t option = "lpf" 
) [virtual]

virtual void TLegend::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TPave.

virtual void TLegend::PaintPrimitives (  )  [virtual]

virtual void TLegend::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TPave.

virtual void TLegend::RecursiveRemove ( TObject obj  )  [virtual]

Reimplemented from TObject.

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]

Definition at line 73 of file TLegend.h.

References fColumnSeparation.

virtual void TLegend::SetEntryLabel ( const char *  label  )  [virtual]

virtual void TLegend::SetEntryOption ( Option_t option  )  [virtual]

void TLegend::SetEntrySeparation ( Float_t  entryseparation  )  [inline]

Definition at line 77 of file TLegend.h.

References fEntrySeparation.

virtual void TLegend::SetHeader ( const char *  header = ""  )  [virtual]

void TLegend::SetMargin ( Float_t  margin  )  [inline]

Definition at line 80 of file TLegend.h.

References fMargin.

void TLegend::SetNColumns ( Int_t  nColumns  ) 


Member Data Documentation

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]

Definition at line 84 of file TLegend.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:42:16 2011 for ROOT_528-00b_version by  doxygen 1.5.1