17 #include "TVirtualPad.h"
18 #include "Riostream.h"
25 fbIsLabStreamed(kTRUE)
32 TNamed(name, title ? title :
"Go4 LabelPainter"),
36 fbIsLabStreamed(kFALSE)
53 SetTextColor(GetLineColor());
68 Double_t xrange=(gPad->GetUxmax()-gPad->GetUxmin());
69 Double_t yrange=(gPad->GetUymax()-gPad->GetUymin());
81 if (gPad->GetListOfPrimitives()->FindObject(
fxLabel)==0)
99 fxLabel->SetLineColor(GetLineColor());
112 gROOT->GetListOfCanvases()->RecursiveRemove(
fxLabel);
116 if(option.Contains(
"reset")) {
143 if(gPad==0)
return 0;
152 TAttText::Copy(*label);
153 TAttLine::Copy(*label);
154 TAttFill::Copy(*label);
183 Double_t xpmin =gPad->GetUxmin();
184 Double_t xpmax =gPad->GetUxmax();
185 Double_t ypmin =gPad->GetUymin();
186 Double_t ypmax =gPad->GetUymax();
187 Double_t dx=(xpmax-xpmin);
188 Double_t dy=(ypmax-ypmin);
191 xmax=gPad->XtoPad(xmin)+width;
192 ymax=gPad->YtoPad(ymin)+height;
193 xmax=gPad->PadtoX(xmax);
194 ymax=gPad->PadtoY(ymax);
238 TPaveText::Paint(opt);
251 TPaveText::ExecuteEvent(event,px,py);
252 if(event==kButton1Up)
virtual void Paint(Option_t *opt="")
virtual void UnPaintLabel(Option_t *opt="")
virtual void Paint(Option_t *opt="")
TGo4Label * CreateCurrentLabel(Double_t x, Double_t y)
virtual ~TGo4LabelPainter()
virtual void PaintLabel(Option_t *opt="")
void SetCaption(const char *txt)
void LabelCoords(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax)
static char * fxLastDeleted
void SetOwner(TObject *ob)
static char * fxLastDeleted
virtual void DisplayToFront(Option_t *opt="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void RePaintLabel(Option_t *opt="")