library: libGraf
#include "TLegendEntry.h"

TLegendEntry


class description - header file - source file - inheritance tree (.pdf)

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

Inheritance Chart:
TObject
TAttText
TAttLine
TAttFill
TAttMarker
<-
TLegendEntry

    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)

Data Members


    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

Class Description

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

TLegendEntry()
 TLegendEntry do-nothing default constructor
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"
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(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(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
void SetLabel( const char *label = "" )
void SetOption( Option_t *option="lpf" )

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.