14#ifndef TGO4LABELPAINTER_H
15#define TGO4LABELPAINTER_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;
97class TGo4LabelPainter :
public TNamed,
public TAttLine,
public TAttFill,
public TAttText {
164 void LabelCoords(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax);
Connection line for labels that knows its author.
TGo4LabelConnector(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void Paint(Option_t *opt="") override
static const void * fxLastDeleted
set this to pointer of last deleted instance before
TObject * fxOwner
the owner of this connector line
void SetOwner(TObject *ob)
virtual ~TGo4LabelConnector()
Base class for painters providing a textlabel for additional information.
void SetY0(Double_t y=0.)
virtual void UnPaintLabel(Option_t *opt="")
Erase the label.
Double_t fdHeight
initial height relative to whole pad
Double_t fdX0
initial reference coordinates x
TGo4Label * fxLabel
the label
Double_t fdY0
initial reference coordinates y
Double_t GetLabelYlo()
Reference coordinate y of label box (lower left corner)
Double_t fdWidth
initial width relative to whole pad
Double_t GetLabelXup()
Reference coordinate x of label box (upper right corner)
void InitAttributes()
Initialize the label attributes.
void SetHeight(Double_t h=0.)
void SetWidth(Double_t w=0.)
Double_t GetLabelYup()
Reference coordinate y of label box (upper right corner)
virtual ~TGo4LabelPainter()
void LabelCoords(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax)
Evaluate coordinates for new label for given xmin, ymin with respect to pad size.
Bool_t CheckLabel()
Check if label is still existing.
TString fxCaption
Headline for the label.
Bool_t fbIsLabStreamed
Flag to handle streamed label from file correctly.
void SetCaption(const char *txt)
virtual void PaintLabel(Option_t *opt="")
Draw the label.
TGo4Label * CreateCurrentLabel(Double_t x, Double_t y)
Create Label at the window coords.
virtual void DisplayToFront(Option_t *opt="")
pop all components to the front of the pad
virtual void RePaintLabel(Option_t *opt="")
refresh painting of label with current attributes
void AddToLabel(const char *txt)
Double_t GetLabelXlo()
Reference coordinate x of label box (lower left corner)
void SetX0(Double_t x=0.)
Text label that knows its author.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void SetOwner(TObject *ob)
static const void * fxLastDeleted
set this to pointer of last deleted instance before
void Paint(Option_t *opt="") override
TGo4Label(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="br")
TObject * fxOwner
the owner of this label