|
GSI Object Oriented Online Offline (Go4) GO4-6.4.5
|
Base class for painters providing a textlabel for additional information. More...
#include <TGo4LabelPainter.h>
Public Member Functions | |
| TGo4LabelPainter () | |
| TGo4LabelPainter () | |
| TGo4LabelPainter (const char *name, const char *title=nullptr) | |
| TGo4LabelPainter (const char *name, const char *title=nullptr) | |
| virtual | ~TGo4LabelPainter () |
| virtual | ~TGo4LabelPainter () |
| void | AddToLabel (const char *txt) |
| void | AddToLabel (const char *txt) |
| virtual void | DisplayToFront (Option_t *opt="") |
| pop all components to the front of the pad | |
| virtual void | DisplayToFront (Option_t *opt="") |
| pop all components to the front of the pad | |
| Double_t | GetLabelXlo () |
| Reference coordinate x of label box (lower left corner). | |
| Double_t | GetLabelXlo () |
| Reference coordinate x of label box (lower left corner). | |
| Double_t | GetLabelXup () |
| Reference coordinate x of label box (upper right corner). | |
| Double_t | GetLabelXup () |
| Reference coordinate x of label box (upper right corner). | |
| Double_t | GetLabelYlo () |
| Reference coordinate y of label box (lower left corner). | |
| Double_t | GetLabelYlo () |
| Reference coordinate y of label box (lower left corner). | |
| Double_t | GetLabelYup () |
| Reference coordinate y of label box (upper right corner). | |
| Double_t | GetLabelYup () |
| Reference coordinate y of label box (upper right corner). | |
| void | InitAttributes () |
| Initialize the label attributes. | |
| void | InitAttributes () |
| Initialize the label attributes. | |
| virtual void | PaintLabel (Option_t *opt="") |
| Draw the label. | |
| virtual void | PaintLabel (Option_t *opt="") |
| Draw the label. | |
| virtual void | RePaintLabel (Option_t *opt="") |
| refresh painting of label with current attributes | |
| virtual void | RePaintLabel (Option_t *opt="") |
| refresh painting of label with current attributes | |
| void | SetCaption (const char *txt) |
| void | SetCaption (const char *txt) |
| void | SetHeight (Double_t h=0.) |
| void | SetHeight (Double_t h=0.) |
| void | SetWidth (Double_t w=0.) |
| void | SetWidth (Double_t w=0.) |
| void | SetX0 (Double_t x=0.) |
| void | SetX0 (Double_t x=0.) |
| void | SetY0 (Double_t y=0.) |
| void | SetY0 (Double_t y=0.) |
| virtual void | UnPaintLabel (Option_t *opt="") |
| Erase the label. | |
| virtual void | UnPaintLabel (Option_t *opt="") |
| Erase the label. | |
Private Member Functions | |
| Bool_t | CheckLabel () |
| Check if label is still existing. | |
| Bool_t | CheckLabel () |
| Check if label is still existing. | |
| TGo4Label * | CreateCurrentLabel (Double_t x, Double_t y) |
| Create Label at the window coords. | |
| TGo4Label * | CreateCurrentLabel (Double_t x, Double_t y) |
| Create Label at the window coords. | |
| 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. | |
| 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. | |
Private Attributes | |
| Bool_t | fbIsLabStreamed {kFALSE} |
| Flag to handle streamed label from file correctly. | |
| Double_t | fdHeight {0} |
| initial height relative to whole pad | |
| Double_t | fdWidth {0} |
| initial width relative to whole pad | |
| Double_t | fdX0 {0} |
| initial reference coordinates x | |
| Double_t | fdY0 {0} |
| initial reference coordinates y | |
| TString | fxCaption |
| Headline for the label. | |
| TGo4Label * | fxLabel {nullptr} |
| the label | |
Base class for painters providing a textlabel for additional information.
To be inherited by condition painters and marker painters.
Definition at line 97 of file TGo4LabelPainter.h.
| TGo4LabelPainter::TGo4LabelPainter | ( | ) |
Definition at line 19 of file TGo4LabelPainter.cxx.
References fbIsLabStreamed, fdX0, fdY0, and InitAttributes().
Referenced by TGo4ConditionPainter::TGo4ConditionPainter(), TGo4ConditionPainter::TGo4ConditionPainter(), TGo4MarkerPainter::TGo4MarkerPainter(), TGo4MarkerPainter::TGo4MarkerPainter(), and CheckLabel().
| TGo4LabelPainter::TGo4LabelPainter | ( | const char * | name, |
| const char * | title = nullptr ) |
Definition at line 28 of file TGo4LabelPainter.cxx.
References fbIsLabStreamed, fdX0, fdY0, and InitAttributes().
|
virtual |
Definition at line 50 of file TGo4LabelPainter.cxx.
References fxLabel.
| TGo4LabelPainter::TGo4LabelPainter | ( | ) |
| TGo4LabelPainter::TGo4LabelPainter | ( | const char * | name, |
| const char * | title = nullptr ) |
|
virtual |
|
inline |
Definition at line 121 of file TGo4LabelPainter.h.
References fxLabel.
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
inline |
Definition at line 121 of file TGo4LabelPainter.h.
References fxLabel.
|
private |
Check if label is still existing.
Uses root list of cleanups.
Definition at line 141 of file TGo4LabelPainter.cxx.
References fbIsLabStreamed, fxLabel, and TGo4Label::fxLastDeleted.
Referenced by PaintLabel(), and UnPaintLabel().
|
private |
|
private |
Create Label at the window coords.
Definition at line 127 of file TGo4LabelPainter.cxx.
References LabelCoords().
Referenced by PaintLabel().
|
private |
Create Label at the window coords.
|
virtual |
pop all components to the front of the pad
Reimplemented in TGo4MarkerPainter, TGo4MarkerPainter, TGo4PolyCondPainter, TGo4PolyCondPainter, TGo4WinCondPainter, and TGo4WinCondPainter.
Definition at line 121 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4MarkerPainter::DisplayToFront(), TGo4PolyCondPainter::DisplayToFront(), TGo4WinCondPainter::DisplayToFront(), and TGo4Label::ExecuteEvent().
|
virtual |
pop all components to the front of the pad
Reimplemented in TGo4MarkerPainter, TGo4MarkerPainter, TGo4PolyCondPainter, TGo4PolyCondPainter, TGo4WinCondPainter, and TGo4WinCondPainter.
| Double_t TGo4LabelPainter::GetLabelXlo | ( | ) |
Reference coordinate x of label box (lower left corner).
Definition at line 176 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4MarkerPainter::PaintConnector().
| Double_t TGo4LabelPainter::GetLabelXlo | ( | ) |
Reference coordinate x of label box (lower left corner).
| Double_t TGo4LabelPainter::GetLabelXup | ( | ) |
Reference coordinate x of label box (upper right corner).
Definition at line 186 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4MarkerPainter::PaintConnector().
| Double_t TGo4LabelPainter::GetLabelXup | ( | ) |
Reference coordinate x of label box (upper right corner).
| Double_t TGo4LabelPainter::GetLabelYlo | ( | ) |
Reference coordinate y of label box (lower left corner).
Definition at line 181 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4MarkerPainter::PaintConnector().
| Double_t TGo4LabelPainter::GetLabelYlo | ( | ) |
Reference coordinate y of label box (lower left corner).
| Double_t TGo4LabelPainter::GetLabelYup | ( | ) |
Reference coordinate y of label box (upper right corner).
Definition at line 191 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4MarkerPainter::PaintConnector().
| Double_t TGo4LabelPainter::GetLabelYup | ( | ) |
Reference coordinate y of label box (upper right corner).
References fxLabel.
| void TGo4LabelPainter::InitAttributes | ( | ) |
Initialize the label attributes.
Definition at line 37 of file TGo4LabelPainter.cxx.
References fdHeight, fdWidth, and SetCaption().
Referenced by TGo4LabelPainter(), and TGo4LabelPainter().
| void TGo4LabelPainter::InitAttributes | ( | ) |
Initialize the label attributes.
|
private |
Evaluate coordinates for new label for given xmin, ymin with respect to pad size.
Definition at line 160 of file TGo4LabelPainter.cxx.
References fdHeight, and fdWidth.
Referenced by CreateCurrentLabel(), and PaintLabel().
|
private |
Evaluate coordinates for new label for given xmin, ymin with respect to pad size.
|
virtual |
Draw the label.
Reimplemented in TGo4CondArrayPainter, TGo4CondArrayPainter, TGo4ConditionPainter, TGo4ConditionPainter, TGo4MarkerPainter, and TGo4MarkerPainter.
Definition at line 58 of file TGo4LabelPainter.cxx.
References CheckLabel(), CreateCurrentLabel(), fdX0, fdY0, fxCaption, fxLabel, and LabelCoords().
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
virtual |
Draw the label.
Reimplemented in TGo4CondArrayPainter, TGo4CondArrayPainter, TGo4ConditionPainter, TGo4ConditionPainter, TGo4MarkerPainter, and TGo4MarkerPainter.
|
virtual |
refresh painting of label with current attributes
Definition at line 115 of file TGo4LabelPainter.cxx.
References fxLabel.
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
virtual |
refresh painting of label with current attributes
|
inline |
Definition at line 115 of file TGo4LabelPainter.h.
References fxCaption.
Referenced by InitAttributes(), TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
inline |
Definition at line 115 of file TGo4LabelPainter.h.
References fxCaption.
|
inline |
Definition at line 119 of file TGo4LabelPainter.h.
References fdHeight.
|
inline |
Definition at line 119 of file TGo4LabelPainter.h.
References fdHeight.
|
inline |
Definition at line 118 of file TGo4LabelPainter.h.
References fdWidth.
|
inline |
Definition at line 118 of file TGo4LabelPainter.h.
References fdWidth.
|
inline |
Definition at line 116 of file TGo4LabelPainter.h.
References fdX0.
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
inline |
Definition at line 116 of file TGo4LabelPainter.h.
References fdX0.
|
inline |
Definition at line 117 of file TGo4LabelPainter.h.
References fdY0.
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::PaintLabel().
|
inline |
Definition at line 117 of file TGo4LabelPainter.h.
References fdY0.
|
virtual |
Erase the label.
Reimplemented in TGo4MarkerPainter, and TGo4MarkerPainter.
Definition at line 100 of file TGo4LabelPainter.cxx.
References CheckLabel(), and fxLabel.
Referenced by TGo4ConditionPainter::PaintLabel(), and TGo4MarkerPainter::UnPaintLabel().
|
virtual |
Erase the label.
Reimplemented in TGo4MarkerPainter, and TGo4MarkerPainter.
|
private |
Flag to handle streamed label from file correctly.
Definition at line 158 of file TGo4LabelPainter.h.
Referenced by TGo4LabelPainter(), TGo4LabelPainter(), and CheckLabel().
|
private |
initial height relative to whole pad
Definition at line 152 of file TGo4LabelPainter.h.
Referenced by InitAttributes(), LabelCoords(), and SetHeight().
|
private |
initial width relative to whole pad
Definition at line 149 of file TGo4LabelPainter.h.
Referenced by InitAttributes(), LabelCoords(), and SetWidth().
|
private |
initial reference coordinates x
Definition at line 143 of file TGo4LabelPainter.h.
Referenced by TGo4LabelPainter(), TGo4LabelPainter(), PaintLabel(), and SetX0().
|
private |
initial reference coordinates y
Definition at line 146 of file TGo4LabelPainter.h.
Referenced by TGo4LabelPainter(), TGo4LabelPainter(), PaintLabel(), and SetY0().
|
private |
Headline for the label.
Definition at line 155 of file TGo4LabelPainter.h.
Referenced by PaintLabel(), and SetCaption().
|
private |
the label
Definition at line 140 of file TGo4LabelPainter.h.
Referenced by ~TGo4LabelPainter(), AddToLabel(), CheckLabel(), DisplayToFront(), GetLabelXlo(), GetLabelXup(), GetLabelYlo(), GetLabelYup(), PaintLabel(), RePaintLabel(), and UnPaintLabel().