Logo ROOT   6.08/07
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 #ifndef ROOT_TAttText
16 #include "TObject.h"
17 #endif
18 
19 #ifndef ROOT_TAttText
20 #include "TAttText.h"
21 #endif
22 
23 #ifndef ROOT_TString
24 #include "TString.h"
25 #endif
26 
27 class TAxisModLab : public TObject, public TAttText {
28 
29 private:
30 
31  Int_t fLabNum; ///< Label number.
32  TString fLabText; ///< Label text
33 
34 public:
35 
36  TAxisModLab();
37 
38  void SetLabNum(Int_t n = 0);
39  void SetAngle(Double_t a = -1.);
40  void SetSize(Double_t s = -1.);
41  void SetAlign(Int_t a = -1);
42  void SetColor(Int_t c = -1);
43  void SetFont(Int_t f = -1);
44  void SetText(TString t = "");
45 
46  Int_t GetLabNum() {return fLabNum;}
51  Int_t GetFont() {return fTextFont;}
52  TString GetText() {return fLabText;}
53 
54  ClassDef(TAxisModLab,0) // Modified axis label
55 };
56 
57 #endif
Int_t GetColor()
Definition: TAxisModLab.h:50
void SetText(TString t="")
Set modified label text.
Definition: TAxisModLab.cxx:84
return c
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
TArc * a
Definition: textangle.C:12
void SetFont(Int_t f=-1)
Set modified label font.
Definition: TAxisModLab.cxx:77
void SetAlign(Int_t a=-1)
Set modified label alignment.
Definition: TAxisModLab.cxx:63
Double_t GetSize()
Definition: TAxisModLab.h:48
#define ClassDef(name, id)
Definition: Rtypes.h:254
TAxisModLab()
TAxisModLab default constructor.
Definition: TAxisModLab.cxx:29
void SetAngle(Double_t a=-1.)
Set modified label angle.
Definition: TAxisModLab.cxx:49
void SetColor(Int_t c=-1)
Set modified label color.
Definition: TAxisModLab.cxx:70
Float_t fTextAngle
Text angle.
Definition: TAttText.h:27
Int_t fLabNum
Label number.
Definition: TAxisModLab.h:31
Int_t GetAlign()
Definition: TAxisModLab.h:49
Text Attributes class.
Definition: TAttText.h:24
void SetSize(Double_t s=-1.)
Set modified label size.
Definition: TAxisModLab.cxx:56
Font_t fTextFont
Text font.
Definition: TAttText.h:31
void SetLabNum(Int_t n=0)
Set modified label number.
Definition: TAxisModLab.cxx:42
Int_t GetLabNum()
Definition: TAxisModLab.h:46
double f(double x)
TString fLabText
Label text.
Definition: TAxisModLab.h:32
TAxis helper class used to store the modified labels.
Definition: TAxisModLab.h:27
double Double_t
Definition: RtypesCore.h:55
Double_t GetAngle()
Definition: TAxisModLab.h:47
Float_t fTextSize
Text size.
Definition: TAttText.h:28
Mother of all ROOT objects.
Definition: TObject.h:37
TString GetText()
Definition: TAxisModLab.h:52
Color_t fTextColor
Text color.
Definition: TAttText.h:30
Int_t GetFont()
Definition: TAxisModLab.h:51
const Int_t n
Definition: legend1.C:16
Short_t fTextAlign
Text alignment.
Definition: TAttText.h:29