Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
21TAxis 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}
#define f(i)
Definition RSha256.hxx:104
#define c(i)
Definition RSha256.hxx:101
#define a(i)
Definition RSha256.hxx:99
double Double_t
Definition RtypesCore.h:59
#define ClassImp(name)
Definition Rtypes.h:364
Color_t fTextColor
Text color.
Definition TAttText.h:24
Float_t fTextAngle
Text angle.
Definition TAttText.h:21
Font_t fTextFont
Text font.
Definition TAttText.h:25
Short_t fTextAlign
Text alignment.
Definition TAttText.h:23
Float_t fTextSize
Text size.
Definition TAttText.h:22
TAxis helper class used to store the modified labels.
Definition TAxisModLab.h:21
Int_t fLabNum
Label number.
Definition TAxisModLab.h:25
void SetColor(Int_t c=-1)
Set modified label color.
void SetSize(Double_t s=-1.)
Set modified label size.
void SetFont(Int_t f=-1)
Set modified label font.
void SetText(TString t="")
Set modified label text.
void SetAlign(Int_t a=-1)
Set modified label alignment.
void SetLabNum(Int_t n=0)
Set modified label number.
TString fLabText
Label text.
Definition TAxisModLab.h:26
void SetAngle(Double_t a=-1.)
Set modified label angle.
TAxisModLab()
TAxisModLab default constructor.
Basic string class.
Definition TString.h:136
auto * l
Definition textangle.C:4