Logo ROOT  
Reference Guide
TAxisModLab.cxx
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Olivier Couet
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #include <cstdlib>
13 
14 #include "TAxisModLab.h"
15 
17 
18 /** \class TAxisModLab
19 \ingroup BasicGraphics
20 
21 TAxis helper class used to store the modified labels.
22 */
23 
24 ////////////////////////////////////////////////////////////////////////////////
25 /// TAxisModLab default constructor.
26 
28  fLabNum = 0;
29  fTextAngle = -1.;
30  fTextSize = -1.;
31  fTextAlign = -1;
32  fTextColor = -1;
33  fTextFont = -1;
34  fLabText = "";
35 }
36 
37 ////////////////////////////////////////////////////////////////////////////////
38 /// Set modified label number.
39 
41  if (l!=0) fLabNum = l;
42 }
43 
44 ////////////////////////////////////////////////////////////////////////////////
45 /// Set modified label angle.
46 
48  if (a>=0.) fTextAngle = a;
49 }
50 
51 ////////////////////////////////////////////////////////////////////////////////
52 /// Set modified label size.
53 
55  if (s>=0.) fTextSize = s;
56 }
57 
58 ////////////////////////////////////////////////////////////////////////////////
59 /// Set modified label alignment.
60 
62  if (a>0) fTextAlign = a;
63 }
64 
65 ////////////////////////////////////////////////////////////////////////////////
66 /// Set modified label color.
67 
69  if (c>0) fTextColor = c;
70 }
71 
72 ////////////////////////////////////////////////////////////////////////////////
73 /// Set modified label font.
74 
76  if (f>0) fTextFont = 0;
77 }
78 
79 ////////////////////////////////////////////////////////////////////////////////
80 /// Set modified label text.
81 
83  fLabText = s;
84 }
c
#define c(i)
Definition: RSha256.hxx:119
l
auto * l
Definition: textangle.C:4
f
#define f(i)
Definition: RSha256.hxx:122
TAxisModLab::SetText
void SetText(TString t="")
Set modified label text.
Definition: TAxisModLab.cxx:82
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
TAxisModLab::SetFont
void SetFont(Int_t f=-1)
Set modified label font.
Definition: TAxisModLab.cxx:75
TAttText::fTextAlign
Short_t fTextAlign
Text alignment.
Definition: TAttText.h:29
TAxisModLab
Definition: TAxisModLab.h:21
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
TAttText::fTextSize
Float_t fTextSize
Text size.
Definition: TAttText.h:28
TAxisModLab::SetAlign
void SetAlign(Int_t a=-1)
Set modified label alignment.
Definition: TAxisModLab.cxx:61
TAttText::fTextAngle
Float_t fTextAngle
Text angle.
Definition: TAttText.h:27
TString
Definition: TString.h:136
TAxisModLab::SetAngle
void SetAngle(Double_t a=-1.)
Set modified label angle.
Definition: TAxisModLab.cxx:47
TAxisModLab::TAxisModLab
TAxisModLab()
TAxisModLab default constructor.
Definition: TAxisModLab.cxx:27
TAttText::fTextColor
Color_t fTextColor
Text color.
Definition: TAttText.h:30
TAxisModLab::SetColor
void SetColor(Int_t c=-1)
Set modified label color.
Definition: TAxisModLab.cxx:68
TAxisModLab::fLabNum
Int_t fLabNum
Label number.
Definition: TAxisModLab.h:31
a
auto * a
Definition: textangle.C:12
TAxisModLab::SetSize
void SetSize(Double_t s=-1.)
Set modified label size.
Definition: TAxisModLab.cxx:54
TAxisModLab::SetLabNum
void SetLabNum(Int_t n=0)
Set modified label number.
Definition: TAxisModLab.cxx:40
Double_t
double Double_t
Definition: RtypesCore.h:59
TAxisModLab::fLabText
TString fLabText
Label text.
Definition: TAxisModLab.h:32
TAttText::fTextFont
Font_t fTextFont
Text font.
Definition: TAttText.h:31
TAxisModLab.h
int