112 :
TPad(
"button",title,x1,y1,x2,y2,18,2,1),
TAttText(22,0,1,61,0.65)
201 if (cdpad) cdpad->
cd();
265 Int_t nch = strlen(cm);
266 char *cmethod =
new char[nch+10];
278 out<<
"button = new TButton("<<quote<<
GetTitle()
279 <<quote<<
","<<quote<<cmethod<<quote
292 out<<
" button->SetBorderSize("<<
GetBorderSize()<<
");"<<std::endl;
295 out<<
" button->SetBorderMode("<<
GetBorderMode()<<
");"<<std::endl;
298 if (
GetFraming()) out<<
"button->SetFraming();"<<std::endl;
299 if (
IsEditable()) out<<
"button->SetEditable(kTRUE);"<<std::endl;
301 out<<
" button->Draw();"<<std::endl;
307 while ((obj =
next())) {
308 if (!nprim) out<<
" button->cd();"<<std::endl;
313 if (nprim) out<<
" "<<padsav->
GetName()<<
"->cd();"<<std::endl;
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual Float_t GetTextAngle() const
TList * fPrimitives
Pointer to mother canvas.
virtual TCanvas * GetCanvas() const
virtual Font_t GetTextFont() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual void Paint(Option_t *option="")
Paint all primitives in pad.
Int_t XtoAbsPixel(Double_t x) const
virtual Float_t GetTextSize() const
virtual void Update()
Update pad.
virtual void PaintModified()
Traverse pad hierarchy and (re)paint only modified pads.
virtual Short_t GetBorderMode() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void SetTextFont(Font_t tfont=62)
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
static const double x2[5]
virtual Short_t GetTextAlign() const
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
To draw Mathematical Formula.
virtual Color_t GetTextColor() const
TCanvas * fCanvas
pointer to mother of the list
Int_t YtoAbsPixel(Double_t y) const
virtual void SetEditable(Bool_t mode=kTRUE)
Set pad editable yes/no If a pad is not editable:
virtual void SetTextAlign(Short_t align=11)
const char * GetName() const
Returns name of object.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void SetCursor(ECursor cursor)
Set cursor type.
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
Save text attributes as C++ statement(s) on output stream out.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
virtual void SetTextAngle(Float_t tangle=0)
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
Bool_t TestBit(UInt_t f) const
The most important graphics class in the ROOT system.
virtual Short_t GetBorderSize() const
const char * GetTitle() const
Returns title of object.
Option_t * GetOption() const
virtual void HideToolTip(Int_t event)
Hide tool tip depending on the event type.
static const double x1[5]
virtual Bool_t IsEditable() const
Mother of all ROOT objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
TList * GetListOfPrimitives() const
virtual void Add(TObject *obj)
virtual void SetTextColor(Color_t tcolor=1)
virtual void SetTextSize(Float_t tsize=1)
Double_t fX1
tool tip associated with box
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
void Modified(Bool_t flag=1)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".