library: libGraf #include "TLegendEntry.h" |
TLegendEntry
class description - header file - source file - inheritance tree (.pdf)
public:
TLegendEntry()
TLegendEntry(TObject* obj, const char* label = "0", Option_t* option = "lpf")
TLegendEntry(const TLegendEntry& entry)
virtual ~TLegendEntry()
static TClass* Class()
virtual void Copy(TObject& obj) const
virtual const char* GetLabel() const
virtual TObject* GetObject() const
virtual Option_t* GetOption() const
virtual TClass* IsA() const
TLegendEntry& operator=(const TLegendEntry&)
virtual void Print(Option_t* option = "") const
virtual void SaveEntry(ostream& out, const char* name)
virtual void SetLabel(const char* label = "")
virtual void SetObject(TObject* obj)
virtual void SetObject(const char* objectName)
virtual void SetOption(Option_t* option = "lpf")
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TObject* fObject pointer to object being represented by this entry
TString fLabel Text associated with the entry, will become latex
TString fOption Options associated with this entry
____________________________________________________________________________
TLegendEntry Matthew.Adam.Dobbs@Cern.CH, September 1999
Storage class for one entry of a TLegend
TLegendEntry(TObject* obj, const char* label, Option_t* option )
TLegendEntry normal constructor for one entry in a TLegend
obj is the object this entry will represent. If obj has
line/fill/marker attributes, then the TLegendEntry will display
these attributes.
label is the text that will describe the entry, it is displayed using
TLatex, so may have a complex format.
option may have values
L draw line associated w/ TAttLine if obj inherits from TAttLine
P draw polymarker assoc. w/ TAttMarker if obj inherits from TAttMarker
F draw a box with fill associated w/ TAttFill if obj inherits TAttFill
default is object = "LPF"
void SaveEntry(ostream &out, const char* name )
Save this TLegendEntry as C++ statements on output stream out
to be used with the SaveAs .C option
void SetObject( const char* objectName)
(re)set the obj pointed to by this entry
Author: Matthew.Adam.Dobbs 06/09/99
Last update: root/graf:$Name: $:$Id: TLegendEntry.cxx,v 1.11 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.