13 #ifndef ROOT_TLegendEntry
14 #define ROOT_TLegendEntry
24 class TLegendEntry :
public TObject,
public TAttText,
public TAttLine,
25 public TAttFill,
public TAttMarker {
28 TLegendEntry(
const TObject *obj,
const char *label = 0, Option_t *option=
"lpf" );
29 TLegendEntry(
const TLegendEntry &entry );
30 virtual ~TLegendEntry();
31 virtual void Copy( TObject &obj )
const;
32 virtual const char *GetLabel()
const {
return fLabel.Data(); }
33 virtual TObject *GetObject()
const {
return fObject; }
34 virtual Option_t *GetOption()
const {
return fOption.Data(); }
35 virtual void Print( Option_t *option =
"" )
const;
36 virtual void SaveEntry( std::ostream &out,
const char *name );
37 virtual void SetLabel(
const char *label =
"" ) { fLabel = label; }
38 virtual void SetObject(TObject* obj );
39 virtual void SetObject(
const char *objectName );
40 virtual void SetOption( Option_t *option=
"lpf" ) { fOption = option; }
48 TLegendEntry& operator=(
const TLegendEntry&);
50 ClassDef(TLegendEntry,1)