Logo ROOT  
Reference Guide
TAxisModLab.h
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 #ifndef ROOT_TAxisModLab
13 #define ROOT_TAxisModLab
14 
15 #include "TObject.h"
16 
17 #include "TAttText.h"
18 
19 #include "TString.h"
20 
21 class TAxisModLab : public TObject, public TAttText {
22 
23 private:
24 
25  Int_t fLabNum; ///< Label number.
26  TString fLabText; ///< Label text
27 
28 public:
29 
30  TAxisModLab();
31 
32  void SetLabNum(Int_t n = 0);
33  void SetAngle(Double_t a = -1.);
34  void SetSize(Double_t s = -1.);
35  void SetAlign(Int_t a = -1);
36  void SetColor(Int_t c = -1);
37  void SetFont(Int_t f = -1);
38  void SetText(TString t = "");
39 
40  Int_t GetLabNum() {return fLabNum;}
41  Double_t GetAngle() {return fTextAngle;}
42  Double_t GetSize() {return fTextSize;}
43  Int_t GetAlign() {return fTextAlign;}
44  Int_t GetColor() {return fTextColor;}
45  Int_t GetFont() {return fTextFont;}
46  TString GetText() {return fLabText;}
47 
48  ClassDef(TAxisModLab,3) // Modified axis label
49 };
50 
51 #endif
c
#define c(i)
Definition: RSha256.hxx:119
TAttText
Definition: TAttText.h:18
n
const Int_t n
Definition: legend1.C:16
f
#define f(i)
Definition: RSha256.hxx:122
TAxisModLab::GetColor
Int_t GetColor()
Definition: TAxisModLab.h:50
TAxisModLab::SetText
void SetText(TString t="")
Set modified label text.
Definition: TAxisModLab.cxx:82
TAttText.h
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
Int_t
int Int_t
Definition: RtypesCore.h:45
TAxisModLab::GetSize
Double_t GetSize()
Definition: TAxisModLab.h:48
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
TString.h
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
TAxisModLab::GetAlign
Int_t GetAlign()
Definition: TAxisModLab.h:49
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
TAxisModLab::GetLabNum
Int_t GetLabNum()
Definition: TAxisModLab.h:46
Double_t
double Double_t
Definition: RtypesCore.h:59
TObject.h
TAxisModLab::fLabText
TString fLabText
Label text.
Definition: TAxisModLab.h:32
TAxisModLab::GetAngle
Double_t GetAngle()
Definition: TAxisModLab.h:47
TAxisModLab::GetText
TString GetText()
Definition: TAxisModLab.h:52
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TAttText::fTextFont
Font_t fTextFont
Text font.
Definition: TAttText.h:31
int
TAxisModLab::GetFont
Int_t GetFont()
Definition: TAxisModLab.h:51