Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAxisModLab.h
Go to the documentation of this file.
1// @(#)root/graf:$Id$
2// Author: Olivier Couet
3
4/*************************************************************************
5 * Copyright (C) 1995-2023, 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
21class TAxisModLab : public TObject, public TAttText {
22
23private:
24 Int_t fLabNum; ///< Label number.
25 Double_t fLabValue; ///< Label value, used when label number is 0
26 TString fLabText; ///< Alternative label text
27
28public:
29
31
32 void SetLabNum(Int_t n = 0);
33 void SetLabValue(Double_t v = 0.);
34 void SetAngle(Double_t a = -1.);
35 void SetSize(Double_t s = -1.);
36 void SetAlign(Int_t a = -1);
37 void SetColor(Int_t c = -1);
38 void SetFont(Int_t f = -1);
39 void SetText(TString t = "");
40
41 Int_t GetLabNum() const { return fLabNum; }
42 Double_t GetLabValue() const { return fLabValue; }
43 Double_t GetAngle() const { return fTextAngle; }
44 Double_t GetSize() const { return fTextSize; }
45 Int_t GetAlign() const { return fTextAlign; }
46 Int_t GetColor() const { return fTextColor; }
47 Int_t GetFont() const { return fTextFont; }
48 const TString &GetText() const { return fLabText; }
49
50 ClassDefOverride(TAxisModLab,4) // Modified axis label
51};
52
53#endif
#define f(i)
Definition RSha256.hxx:104
#define c(i)
Definition RSha256.hxx:101
#define a(i)
Definition RSha256.hxx:99
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Text Attributes class.
Definition TAttText.h:18
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:24
void SetColor(Int_t c=-1)
Set modified label color.
void SetSize(Double_t s=-1.)
Set modified label size.
Double_t GetSize() const
Definition TAxisModLab.h:44
Int_t GetAlign() const
Definition TAxisModLab.h:45
Int_t GetLabNum() const
Definition TAxisModLab.h:41
const TString & GetText() const
Definition TAxisModLab.h:48
void SetFont(Int_t f=-1)
Set modified label font.
void SetText(TString t="")
Set modified label text.
Int_t GetFont() const
Definition TAxisModLab.h:47
void SetLabValue(Double_t v=0.)
Set modified label value.
void SetAlign(Int_t a=-1)
Set modified label alignment.
void SetLabNum(Int_t n=0)
Set modified label number.
Double_t GetAngle() const
Definition TAxisModLab.h:43
TString fLabText
Alternative label text.
Definition TAxisModLab.h:26
void SetAngle(Double_t a=-1.)
Set modified label angle.
Int_t GetColor() const
Definition TAxisModLab.h:46
TAxisModLab()
TAxisModLab default constructor.
Double_t fLabValue
Label value, used when label number is 0.
Definition TAxisModLab.h:25
Double_t GetLabValue() const
Definition TAxisModLab.h:42
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139
const Int_t n
Definition legend1.C:16