#ifndef ROOT_TLegendEntry
#define ROOT_TLegendEntry
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TAttText
#include "TAttText.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
#ifndef ROOT_TAttMarker
#include "TAttMarker.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TLegendEntry : public TObject, public TAttText, public TAttLine,
public TAttFill, public TAttMarker {
public:
TLegendEntry();
TLegendEntry(const TObject *obj, const char *label = 0, Option_t *option="lpf" );
TLegendEntry( const TLegendEntry &entry );
virtual ~TLegendEntry();
virtual void Copy( TObject &obj ) const;
virtual const char *GetLabel() const { return fLabel.Data(); }
virtual TObject *GetObject() const { return fObject; }
virtual Option_t *GetOption() const { return fOption.Data(); }
virtual void Print( Option_t *option = "" ) const;
virtual void SaveEntry( ostream &out, const char *name );
virtual void SetLabel( const char *label = "" ) { fLabel = label; }
virtual void SetObject(TObject* obj );
virtual void SetObject( const char *objectName );
virtual void SetOption( Option_t *option="lpf" ) { fOption = option; }
protected:
TObject *fObject;
TString fLabel;
TString fOption;
private:
TLegendEntry& operator=(const TLegendEntry&);
ClassDef(TLegendEntry,1)
};
#endif
Last change: Mon Dec 8 10:00:42 2008
Last generated: 2008-12-08 10:00
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.