14 #ifndef TGO4LABELPAINTER_H 15 #define TGO4LABELPAINTER_H 17 #include "TPaveText.h" 32 TGo4Label(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option =
"br")
33 : TPaveText(x1, y1, x2, y2, option),
fxOwner(nullptr)
42 void Paint(Option_t *opt =
"")
override;
44 void ExecuteEvent(Int_t event, Int_t px, Int_t py)
override;
77 void Paint(Option_t *opt =
"")
override;
97 class TGo4LabelPainter :
public TNamed,
public TAttLine,
public TAttFill,
public TAttText {
104 virtual void PaintLabel(Option_t *opt =
"");
107 virtual void UnPaintLabel(Option_t *opt =
"");
110 virtual void RePaintLabel(Option_t *opt =
"");
113 virtual void DisplayToFront(Option_t *opt =
"");
116 void SetX0(Double_t x = 0.) { fdX0 = x; }
117 void SetY0(Double_t y = 0.) { fdY0 = y; }
121 void AddToLabel(
const char *txt) {
if(fxLabel) fxLabel->AddText(txt); }
124 void InitAttributes();
127 Double_t GetLabelXlo();
130 Double_t GetLabelYlo();
133 Double_t GetLabelXup();
136 Double_t GetLabelYup();
152 Double_t fdHeight{0};
158 Bool_t fbIsLabStreamed{kFALSE};
161 TGo4Label* CreateCurrentLabel(Double_t x, Double_t y);
164 void LabelCoords(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax);
172 #endif //TGO4LABELPAINTER_H static const void * fxLastDeleted
virtual ~TGo4LabelConnector()
TGo4LabelConnector(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
TGo4Label(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="br")
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void Paint(Option_t *opt="") override
void SetWidth(Double_t w=0.)
static const void * fxLastDeleted
void SetCaption(const char *txt)
void SetOwner(TObject *ob)
void SetY0(Double_t y=0.)
void SetOwner(TObject *ob)
void SetX0(Double_t x=0.)
void SetHeight(Double_t h=0.)
void AddToLabel(const char *txt)