86 snprintf(command,32,
"%s(%d)",action,10*j+i+1);
87 colorpad =
new TGroupButton(
"Color",
"",command,xlow, ylow, xlow+0.9*
ws, ylow+0.9*hs);
110 char *params = strchr(method,
'(');
114 char *end = strrchr(params,
')');
120 if (strcmp(method,
"PIXELS")) {
126 pad =
gROOT->GetSelectedPad();
133 obj->
Execute(
"SetTextSize",params);
138 obj->
Execute(
"SetTextSize",params);
141 obj->
Execute(
"SetTextSizePixels",params);
161 TIter next(
c->GetListOfPrimitives());
181 if (!strcasecmp(
GetName(),
"APPLY")) {
183 if (!strcasecmp(
GetTitle(),
"CLOSE")) {
197 while ((obj = next())) {
198 if (obj ==
this)
continue;
228 out<<
" TGroupButton *";
230 out<<
"button = new TGroupButton("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
243 out<<
" button->SetBorderSize("<<
GetBorderSize()<<
");"<<std::endl;
246 out<<
" button->SetBorderMode("<<
GetBorderMode()<<
");"<<std::endl;
249 out<<
" button->Draw();"<<std::endl;
250 out<<
" button->cd();"<<std::endl;
255 while ((obj = next()))
258 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 FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
void Close(Option_t *option="")
Close canvas.
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.
Double_t fWNDC
Width of pad along X in Normalized Coordinates (NDC)
Int_t YtoPixel(Double_t y) const
const char * GetTitle() const
Returns title of object.
Double_t fYlowNDC
Y bottom left corner of pad in NDC [0,1].
const char * GetName() const
Returns name of object.
virtual Bool_t IsEditable() const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void Modified(Bool_t flag=1)
virtual TVirtualPad * GetMother() const
virtual TCanvas * GetCanvas() const
virtual void Update()
Update pad.
virtual Short_t GetBorderMode() const
TList * GetListOfPrimitives() const
virtual Short_t GetBorderSize() const
Double_t fHNDC
Height of pad along Y in Normalized Coordinates (NDC)
Double_t fXlowNDC
X bottom left corner of pad in NDC [0,1].
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
TPad * fMother
! pointer to mother of the list
virtual void SetBorderSize(Short_t bordersize)
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Double_t GetY1() const =0
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetY2() const =0