Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4LabelPainter Class Reference

Base class for painters providing a textlabel for additional information. More...

#include <TGo4LabelPainter.h>

Inheritance diagram for TGo4LabelPainter:

TGo4ConditionPainter TGo4MarkerPainter TGo4CondArrayPainter TGo4PolyCondPainter TGo4WinCondPainter List of all members.

Public Methods

 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. More...

virtual void UnPaintLabel (Option_t *opt="")
 Erase the label. More...

virtual void RePaintLabel (Option_t *opt="")
 refresh painting of label with current attributes. More...

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. More...

Double_t GetLabelXlo ()
 Reference coordinate x of label box (lower left corner). More...

Double_t GetLabelYlo ()
 Reference coordinate y of label box (lower left corner). More...

Double_t GetLabelXup ()
 Reference coordinate x of label box (upper right corner). More...

Double_t GetLabelYup ()
 Reference coordinate y of label box (upper right corner). More...


Private Methods

TGo4LabelCreateCurrentLabel (Double_t x, Double_t y)
 Create Label at the window coords. More...

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. More...

Bool_t CheckLabel ()
 Check if label is still existing. More...


Private Attributes

TGo4LabelfxLabel
 the label. More...

Double_t fdX0
 initial reference coordinates x. More...

Double_t fdY0
 initial reference coordinates y. More...

Double_t fdWidth
 initial width relative to whole pad. More...

Double_t fdHeight
 initial height relative to whole pad. More...

TString fxCaption
 Headline for the label. More...

Bool_t fbIsLabStreamed
 Flag to handle streamed label from file correctly. More...


Detailed Description

Base class for painters providing a textlabel for additional information.

To be inherited by condition painters and marker painters.

Since:
6/2004
Author:
J. Adamczewski

Definition at line 85 of file TGo4LabelPainter.h.


Constructor & Destructor Documentation

TGo4LabelPainter::TGo4LabelPainter  
 

Definition at line 33 of file TGo4LabelPainter.cxx.

References InitAttributes().

TGo4LabelPainter::TGo4LabelPainter const Text_t *    name
 

Definition at line 27 of file TGo4LabelPainter.cxx.

References InitAttributes().

TGo4LabelPainter::TGo4LabelPainter const Text_t *    name,
const Text_t *    title
 

Definition at line 21 of file TGo4LabelPainter.cxx.

References InitAttributes().

TGo4LabelPainter::~TGo4LabelPainter   [virtual]
 

Definition at line 51 of file TGo4LabelPainter.cxx.

References fxLabel.


Member Function Documentation

void TGo4LabelPainter::PaintLabel Option_t *    opt = "" [virtual]
 

Draw the label.

Reimplemented in TGo4CondArrayPainter, TGo4ConditionPainter, and TGo4MarkerPainter.

Definition at line 60 of file TGo4LabelPainter.cxx.

References CheckLabel(), CreateCurrentLabel(), fdX0, fdY0, fxCaption, and fxLabel.

Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::UnPaintLabel Option_t *    opt = "" [virtual]
 

Erase the label.

Reimplemented in TGo4MarkerPainter.

Definition at line 87 of file TGo4LabelPainter.cxx.

References CheckLabel(), and fxLabel.

Referenced by TGo4ConditionPainter::PaintLabel(), TGo4Condition::ResetLabel(), TGo4Condition::UnDraw(), and TGo4MarkerPainter::UnPaintLabel().

void TGo4LabelPainter::RePaintLabel Option_t *    opt = "" [virtual]
 

refresh painting of label with current attributes.

Definition at line 105 of file TGo4LabelPainter.cxx.

References fxLabel, and TGo4Label::Paint().

Referenced by TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::SetCaption const Text_t *    txt [inline]
 

Definition at line 101 of file TGo4LabelPainter.h.

References fxCaption.

Referenced by InitAttributes(), TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::SetX0 Double_t    x = 0 [inline]
 

Definition at line 102 of file TGo4LabelPainter.h.

References fdX0.

Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::SetY0 Double_t    y = 0 [inline]
 

Definition at line 103 of file TGo4LabelPainter.h.

References fdY0.

Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::SetWidth Double_t    w = 0 [inline]
 

Definition at line 104 of file TGo4LabelPainter.h.

References fdWidth.

void TGo4LabelPainter::SetHeight Double_t    h = 0 [inline]
 

Definition at line 105 of file TGo4LabelPainter.h.

References fdHeight.

void TGo4LabelPainter::AddToLabel const Text_t *    txt [inline]
 

Definition at line 107 of file TGo4LabelPainter.h.

References fxLabel.

Referenced by TGo4MarkerPainter::PaintLabel(), and TGo4ConditionPainter::PaintLabel().

void TGo4LabelPainter::InitAttributes  
 

Initialize the label attributes.

Definition at line 39 of file TGo4LabelPainter.cxx.

References fdHeight, fdWidth, and SetCaption().

Referenced by TGo4LabelPainter().

Double_t TGo4LabelPainter::GetLabelXlo  
 

Reference coordinate x of label box (lower left corner).

Definition at line 166 of file TGo4LabelPainter.cxx.

References fxLabel.

Referenced by TGo4MarkerPainter::PaintConnector().

Double_t TGo4LabelPainter::GetLabelYlo  
 

Reference coordinate y of label box (lower left corner).

Definition at line 174 of file TGo4LabelPainter.cxx.

References fxLabel.

Referenced by TGo4MarkerPainter::PaintConnector().

Double_t TGo4LabelPainter::GetLabelXup  
 

Reference coordinate x of label box (upper right corner).

Definition at line 182 of file TGo4LabelPainter.cxx.

References fxLabel.

Referenced by TGo4MarkerPainter::PaintConnector().

Double_t TGo4LabelPainter::GetLabelYup  
 

Reference coordinate y of label box (upper right corner).

Definition at line 190 of file TGo4LabelPainter.cxx.

References fxLabel.

Referenced by TGo4MarkerPainter::PaintConnector().

TGo4Label * TGo4LabelPainter::CreateCurrentLabel Double_t    x,
Double_t    y
[private]
 

Create Label at the window coords.

Definition at line 110 of file TGo4LabelPainter.cxx.

References LabelCoords(), and TGo4Label::SetOwner().

Referenced by PaintLabel().

void TGo4LabelPainter::LabelCoords Double_t &    xmin,
Double_t &    ymin,
Double_t &    xmax,
Double_t &    ymax
[private]
 

Evaluate coordinates for new label for given xmin, ymin with respect to pad size.

Definition at line 150 of file TGo4LabelPainter.cxx.

References fdHeight, and fdWidth.

Referenced by CreateCurrentLabel().

Bool_t TGo4LabelPainter::CheckLabel   [private]
 

Check if label is still existing.

Uses root list of cleanups.

Definition at line 126 of file TGo4LabelPainter.cxx.

References fbIsLabStreamed, fxLabel, and TGo4Label::SetOwner().

Referenced by PaintLabel(), and UnPaintLabel().


Member Data Documentation

TGo4Label* TGo4LabelPainter::fxLabel [private]
 

the label.

Definition at line 126 of file TGo4LabelPainter.h.

Referenced by AddToLabel(), CheckLabel(), GetLabelXlo(), GetLabelXup(), GetLabelYlo(), GetLabelYup(), PaintLabel(), RePaintLabel(), UnPaintLabel(), and ~TGo4LabelPainter().

Double_t TGo4LabelPainter::fdX0 [private]
 

initial reference coordinates x.

Definition at line 129 of file TGo4LabelPainter.h.

Referenced by PaintLabel(), and SetX0().

Double_t TGo4LabelPainter::fdY0 [private]
 

initial reference coordinates y.

Definition at line 132 of file TGo4LabelPainter.h.

Referenced by PaintLabel(), and SetY0().

Double_t TGo4LabelPainter::fdWidth [private]
 

initial width relative to whole pad.

Definition at line 135 of file TGo4LabelPainter.h.

Referenced by InitAttributes(), LabelCoords(), and SetWidth().

Double_t TGo4LabelPainter::fdHeight [private]
 

initial height relative to whole pad.

Definition at line 138 of file TGo4LabelPainter.h.

Referenced by InitAttributes(), LabelCoords(), and SetHeight().

TString TGo4LabelPainter::fxCaption [private]
 

Headline for the label.

Definition at line 141 of file TGo4LabelPainter.h.

Referenced by PaintLabel(), and SetCaption().

Bool_t TGo4LabelPainter::fbIsLabStreamed [private]
 

Flag to handle streamed label from file correctly.

Definition at line 144 of file TGo4LabelPainter.h.

Referenced by CheckLabel().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:45 2005 for Go4-v2.10-5 by doxygen1.2.15