50 :
TButton(title,method,x1,y1,x2,y2)
82 snprintf(command,32,
"%s(%d)",action,10*j+i+1);
83 colorpad =
new TGroupButton(
"Color",
"",command,xlow, ylow, xlow+0.9*ws, ylow+0.9*hs);
106 char *params = strchr(method,
'(');
110 char *end = strrchr(params,
')');
116 if (strcmp(method,
"PIXELS")) {
122 pad =
gROOT->GetSelectedPad();
128 snprintf(params,nmax,
"%f",dy/(pl->
GetY2() - pl->
GetY1()));
129 obj->
Execute(
"SetTextSize",params);
133 snprintf(params,nmax,
"%f",dy/(pad->
GetY2() - pad->
GetY1()));
134 obj->
Execute(
"SetTextSize",params);
136 snprintf(params,nmax,
"%d",npixels);
137 obj->
Execute(
"SetTextSizePixels",params);
177 if (!strcasecmp(
GetName(),
"APPLY")) {
179 if (!strcasecmp(
GetTitle(),
"CLOSE")) {
193 while ((obj =
next())) {
194 if (obj ==
this)
continue;
224 out<<
" TGroupButton *";
226 out<<
"button = new TGroupButton("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
239 out<<
" button->SetBorderSize("<<
GetBorderSize()<<
");"<<std::endl;
242 out<<
" button->SetBorderMode("<<
GetBorderMode()<<
");"<<std::endl;
245 out<<
" button->Draw();"<<std::endl;
246 out<<
" button->cd();"<<std::endl;
251 while ((obj =
next()))
254 out<<
" "<<padsav->
GetName()<<
"->cd();"<<std::endl;
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
virtual TCanvas * GetCanvas() 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 Float_t GetTextSize() const
virtual void Update()
Update pad.
virtual Short_t GetBorderMode() const
TObject * GetRefObject() const
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
static const double x2[5]
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.
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Double_t AbsPixeltoY(Int_t py)=0
const char * GetName() const
Returns name of object.
virtual Double_t GetY2() const =0
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void Apply(const char *action="")
Called when the APPLY button is executed.
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 SetFillColor(Color_t fcolor)
virtual void Execute(const char *method, const char *params, Int_t *error=0)
Execute method on this object with the given parameter string, e.g.
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.
The most important graphics class in the ROOT system.
virtual Short_t GetBorderSize() const
virtual TVirtualPad * GetMother() const
virtual Double_t GetY1() const =0
const char * GetTitle() const
Returns title of object.
Option_t * GetOption() const
static const double x1[5]
virtual Bool_t IsEditable() const
A canvas specialized to set attributes.
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
Int_t YtoPixel(Double_t y) const
void Close(Option_t *option="")
Close canvas.
virtual void SetBorderSize(Short_t bordersize)
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".