TLegendEntry


class description - source file - inheritance tree

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


    public:
TLegendEntry TLegendEntry(TObject* obj, const Text_t* label = 0, Option_t* option = lpf) TLegendEntry TLegendEntry() TLegendEntry TLegendEntry(const TLegendEntry& entry) virtual void ~TLegendEntry() TClass* Class() virtual void Copy(TObject& obj) virtual const Text_t* 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 Text_t* label) virtual void SetObject(TObject* obj) virtual void SetObject(const Text_t* objectName) virtual void SetOption(Option_t* option = lpf) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TObject* fObject pointer to object being represented by this entry const Text_t* fLabel Text associated with the entry, will become latex Option_t* 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 Text_t* 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()
 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 Text_t* objectName)
 (re)set the obj pointed to by this entry



Inline Functions


        const Text_t* GetLabel() const
             TObject* GetObject()
            Option_t* GetOption() const
                 void SetLabel(const Text_t* 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/03 27/09/99 10.05.28 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.