class description - source file - inheritance tree

class TLegendEntry : public TObject, public TAttText, public TAttLine, public TAttFill, public TAttMarker

TLegendEntry TLegendEntry() TLegendEntry TLegendEntry(TObject* obj, const char* label = 0, Option_t* option = lpf) TLegendEntry TLegendEntry(const TLegendEntry& entry) virtual void ~TLegendEntry() TClass* Class() virtual void Copy(TObject& obj) virtual const char* GetLabel() const virtual TObject* GetObject() virtual Option_t* GetOption() const virtual TClass* IsA() const virtual void Print(Option_t* option) virtual void SaveEntry(ofstream& out, const char* name) virtual void SetLabel(const char* label) virtual void SetObject(const char* objectName) virtual void SetObject(TObject* obj) virtual void SetOption(Option_t* option = lpf) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

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

Class Description

 TLegendEntry   Matthew.Adam.Dobbs@Cern.CH, September 1999
 Storage class for one entry of a TLegend

TLegendEntry(): TAttText(), TAttLine(), TAttFill(), TAttMarker()
 TLegendEntry do-nothing default constructor

TLegendEntry(TObject* obj, const char* label, Option_t* option ) :TAttText(0,0,0,0,0), TAttLine(0,0,0), TAttFill(0,0), TAttMarker(0,0,0)
 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"

TLegendEntry( const TLegendEntry &entry )
 TLegendEntry copy constructor

 TLegendEntry default destructor

void Copy( TObject &obj )
 copy this TLegendEntry into obj

void Print( Option_t *)
 dump this TLegendEntry to cout

void SaveEntry( ofstream &out, const char* name )
 Save this TLegendEntry as C++ statements on output stream out
  to be used with the SaveAs .C option

void SetObject(TObject* obj )
 (re)set the obj pointed to by this entry

void SetObject( const char* objectName)
 (re)set the obj pointed to by this entry

Inline Functions

        const char* GetLabel() const
           TObject* GetObject()
          Option_t* GetOption() const
               void SetLabel(const char* label)
               void SetOption(Option_t* option = lpf)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)

Author: Matthew.Adam.Dobbs 06/09/99
Last update: 2.23/12 26/01/2000 09.31.22 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *

ROOT page - Class index - 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.