54 :
TButton(title,method,x1,y1,x2,y2)
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);
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;
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
TList * GetListOfPrimitives() const
virtual Short_t GetBorderSize() const
TObject * GetRefObject() const
Int_t YtoPixel(Double_t y) const
virtual void Update()
Update pad.
Option_t * GetOption() 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.
virtual Float_t GetTextSize() const
Return the text size.
const char * GetTitle() const
Returns title of object.
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Double_t fYlowNDC
Y bottom left corner of pad in NDC [0,1].
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetY2() const =0
TPad * fMother
! pointer to mother of the list
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 TVirtualPad * GetMother() const
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
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)
Set the fill area color.
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 Bool_t IsEditable() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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 TCanvas * GetCanvas() const
virtual Double_t GetY1() const =0
static const double x1[5]
A canvas specialized to set attributes.
Double_t fXlowNDC
X bottom left corner of pad in NDC [0,1].
Mother of all ROOT objects.
const char * GetName() const
Returns name of object.
virtual Short_t GetBorderMode() const
void Close(Option_t *option="")
Close canvas.
Double_t fHNDC
Height of pad along Y in NDC.
virtual void SetBorderSize(Short_t bordersize)
void Modified(Bool_t flag=1)
Double_t fWNDC
Width of pad along X in NDC.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".