87 snprintf(command,32,
"%s(%d)",action,10*j+i+1);
88 colorpad =
new TGroupButton(
"Color",
"",command,xlow, ylow, xlow+0.9*
ws, ylow+0.9*hs);
111 char *params = strchr(method,
'(');
115 char *end = strrchr(params,
')');
121 if (strcmp(method,
"PIXELS")) {
134 obj->
Execute(
"SetTextSize",params);
139 obj->
Execute(
"SetTextSize",params);
142 obj->
Execute(
"SetTextSizePixels",params);
162 TIter next(
c->GetListOfPrimitives());
182 if (!strcasecmp(
GetName(),
"APPLY")) {
184 if (!strcasecmp(
GetTitle(),
"CLOSE")) {
198 while ((obj = next())) {
199 if (obj ==
this)
continue;
226 if (
gROOT->ClassSaved(TGroupButton::Class())) {
229 out<<
" TGroupButton *";
231 out<<
"button = new TGroupButton("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
244 out<<
" button->SetBorderSize("<<
GetBorderSize()<<
");"<<std::endl;
247 out<<
" button->SetBorderMode("<<
GetBorderMode()<<
");"<<std::endl;
250 out<<
" button->Draw();"<<std::endl;
251 out<<
" button->cd();"<<std::endl;
256 while ((obj = next()))
259 out<<
" "<<padsav->
GetName()<<
"->cd();"<<std::endl;
static const double x2[5]
static const double x1[5]
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
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.
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.
virtual Float_t GetTextSize() const
Return the text size.
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.
void Close(Option_t *option="") override
Close canvas.
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
A canvas specialized to set attributes.
virtual void Apply(const char *action="")
Called when the APPLY button is executed.
TObject * GetRefObject() const
Option_t * GetOption() const
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Mother of all ROOT objects.
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 SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
The most important graphics class in the ROOT system.
Short_t GetBorderMode() const override
void SetBorderSize(Short_t bordersize) override
Double_t fWNDC
Width of pad along X in Normalized Coordinates (NDC)
const char * GetTitle() const override
Returns title of object.
TList * GetListOfPrimitives() const override
Double_t fYlowNDC
Y bottom left corner of pad in NDC [0,1].
void Update() override
Update pad.
Int_t YtoPixel(Double_t y) const override
void Modified(Bool_t flag=1) override
TVirtualPad * GetMother() const override
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Short_t GetBorderSize() const override
TCanvas * GetCanvas() const override
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
Double_t fHNDC
Height of pad along Y in Normalized Coordinates (NDC)
virtual Bool_t IsEditable() const override
Double_t fXlowNDC
X bottom left corner of pad in NDC [0,1].
TPad * fMother
! pointer to mother of the list
const char * GetName() const override
Returns name of object.
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TVirtualPad * GetSelectedPad() const =0
virtual Double_t GetY1() const =0
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetY2() const =0