#include <TGo4LabelPainter.h>
Inheritance diagram for TGo4LabelPainter:
Public Member Functions | |
TGo4LabelPainter () | |
TGo4LabelPainter (const Text_t *name) | |
TGo4LabelPainter (const Text_t *name, const Text_t *title) | |
virtual | ~TGo4LabelPainter () |
virtual void | PaintLabel (Option_t *opt="") |
Draw the label. | |
virtual void | UnPaintLabel (Option_t *opt="") |
Erase the label. | |
virtual void | RePaintLabel (Option_t *opt="") |
refresh painting of label with current attributes | |
virtual void | DisplayToFront (Option_t *opt="") |
pop all components to the front of the pad | |
void | SetCaption (const Text_t *txt) |
void | SetX0 (Double_t x=0) |
void | SetY0 (Double_t y=0) |
void | SetWidth (Double_t w=0) |
void | SetHeight (Double_t h=0) |
void | AddToLabel (const Text_t *txt) |
void | InitAttributes () |
Initialize the label attributes. | |
Double_t | GetLabelXlo () |
Reference coordinate x of label box (lower left corner). | |
Double_t | GetLabelYlo () |
Reference coordinate y of label box (lower left corner). | |
Double_t | GetLabelXup () |
Reference coordinate x of label box (upper right corner). | |
Double_t | GetLabelYup () |
Reference coordinate y of label box (upper right corner). | |
Private Member Functions | |
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. | |
Bool_t | CheckLabel () |
Check if label is still existing. | |
Private Attributes | |
TGo4Label * | fxLabel |
the label | |
Double_t | fdX0 |
initial reference coordinates x | |
Double_t | fdY0 |
initial reference coordinates y | |
Double_t | fdWidth |
initial width relative to whole pad | |
Double_t | fdHeight |
initial height relative to whole pad | |
TString | fxCaption |
Headline for the label. | |
Bool_t | fbIsLabStreamed |
Flag to handle streamed label from file correctly. |
To be inherited by condition painters and marker painters.
Definition at line 93 of file TGo4LabelPainter.h.
|
Definition at line 34 of file TGo4LabelPainter.cxx. References InitAttributes(). |
|
Definition at line 28 of file TGo4LabelPainter.cxx. References InitAttributes(). |
|
Definition at line 22 of file TGo4LabelPainter.cxx. References InitAttributes(). |
|
Definition at line 53 of file TGo4LabelPainter.cxx. References fxLabel. |
|
Draw the label.
Reimplemented in TGo4CondArrayPainter, TGo4ConditionPainter, and TGo4MarkerPainter. Definition at line 61 of file TGo4LabelPainter.cxx. References CheckLabel(), CreateCurrentLabel(), fdX0, fdY0, fxCaption, and fxLabel. Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
Erase the label.
Reimplemented in TGo4MarkerPainter. Definition at line 84 of file TGo4LabelPainter.cxx. References CheckLabel(), and fxLabel. Referenced by TGo4ConditionPainter::PaintLabel(), TGo4Condition::ResetLabel(), TGo4Condition::UnDraw(), and TGo4MarkerPainter::UnPaintLabel(). |
|
refresh painting of label with current attributes
Definition at line 99 of file TGo4LabelPainter.cxx. References fxLabel, and TGo4Label::Paint(). Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
pop all components to the front of the pad
Reimplemented in TGo4MarkerPainter, TGo4PolyCondPainter, and TGo4WinCondPainter. Definition at line 106 of file TGo4LabelPainter.cxx. References fxLabel. Referenced by TGo4WinCondPainter::DisplayToFront(), TGo4PolyCondPainter::DisplayToFront(), TGo4MarkerPainter::DisplayToFront(), TGo4Label::ExecuteEvent(), and TGo4Condition::Pop(). |
|
Definition at line 112 of file TGo4LabelPainter.h. References fxCaption. Referenced by InitAttributes(), TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
Definition at line 113 of file TGo4LabelPainter.h. References fdX0. Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
Definition at line 114 of file TGo4LabelPainter.h. References fdY0. Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
Definition at line 115 of file TGo4LabelPainter.h. References fdWidth. |
|
Definition at line 116 of file TGo4LabelPainter.h. References fdHeight. |
|
Definition at line 118 of file TGo4LabelPainter.h. References fxLabel. Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel(). |
|
Initialize the label attributes.
Definition at line 40 of file TGo4LabelPainter.cxx. References fdHeight, fdWidth, and SetCaption(). Referenced by TGo4LabelPainter(). |
|
Reference coordinate x of label box (lower left corner).
Definition at line 168 of file TGo4LabelPainter.cxx. References fxLabel. Referenced by TGo4MarkerPainter::PaintConnector(). |
|
Reference coordinate y of label box (lower left corner).
Definition at line 176 of file TGo4LabelPainter.cxx. References fxLabel. Referenced by TGo4MarkerPainter::PaintConnector(). |
|
Reference coordinate x of label box (upper right corner).
Definition at line 184 of file TGo4LabelPainter.cxx. References fxLabel. Referenced by TGo4MarkerPainter::PaintConnector(). |
|
Reference coordinate y of label box (upper right corner).
Definition at line 192 of file TGo4LabelPainter.cxx. References fxLabel. Referenced by TGo4MarkerPainter::PaintConnector(). |
|
Create Label at the window coords.
Definition at line 115 of file TGo4LabelPainter.cxx. References LabelCoords(), and TGo4Label::SetOwner(). Referenced by PaintLabel(). |
|
Evaluate coordinates for new label for given xmin, ymin with respect to pad size.
Definition at line 152 of file TGo4LabelPainter.cxx. References fdHeight, and fdWidth. Referenced by CreateCurrentLabel(). |
|
Check if label is still existing. Uses root list of cleanups. Definition at line 131 of file TGo4LabelPainter.cxx. References fbIsLabStreamed, fxLabel, TGo4Label::fxLastDeleted, and TGo4Label::SetOwner(). Referenced by PaintLabel(), and UnPaintLabel(). |
|
the label
Definition at line 137 of file TGo4LabelPainter.h. Referenced by AddToLabel(), CheckLabel(), DisplayToFront(), GetLabelXlo(), GetLabelXup(), GetLabelYlo(), GetLabelYup(), PaintLabel(), RePaintLabel(), UnPaintLabel(), and ~TGo4LabelPainter(). |
|
initial reference coordinates x
Definition at line 140 of file TGo4LabelPainter.h. Referenced by PaintLabel(), and SetX0(). |
|
initial reference coordinates y
Definition at line 143 of file TGo4LabelPainter.h. Referenced by PaintLabel(), and SetY0(). |
|
initial width relative to whole pad
Definition at line 146 of file TGo4LabelPainter.h. Referenced by InitAttributes(), LabelCoords(), and SetWidth(). |
|
initial height relative to whole pad
Definition at line 149 of file TGo4LabelPainter.h. Referenced by InitAttributes(), LabelCoords(), and SetHeight(). |
|
Headline for the label.
Definition at line 152 of file TGo4LabelPainter.h. Referenced by PaintLabel(), and SetCaption(). |
|
Flag to handle streamed label from file correctly.
Definition at line 155 of file TGo4LabelPainter.h. Referenced by CheckLabel(). |