Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
AxisStyle.h
1/*
2 * AxisStyle.h
3 *
4 * Created on: 30 lip 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_FEATURES_HIST_AXISSTYLE_H_
9#define HAL_FEATURES_HIST_AXISSTYLE_H_
10
11#include "Style.h"
12namespace Hal {
13
17 class AxisStyle : public Style {
18
19 TString fTitle;
20
21 public:
22 static const unsigned short int kTitleOffset;
23 static const unsigned short int kLabelOffset;
24 static const unsigned short int kTitleSize;
25 static const unsigned short int kLabelSize;
26 static const unsigned short int kTickLength;
27 static const unsigned short int kNdivisions;
28 static const unsigned short int kAxisColor;
29 static const unsigned short int kLabelColor;
30 static const unsigned short int kTitleColor;
31 static const unsigned short int kTitleFont;
32 static const unsigned short int kCenterTitle;
33 static const unsigned short int kTitle;
34 static const unsigned short int kRangeMin;
35 static const unsigned short int kRangeMax;
36 AxisStyle();
37
38 AxisStyle(Double_t titleSize, Double_t labelSize, Double_t titleOffset, Double_t labelOffset);
39
40 void SetTitleOffset(Float_t val);
41
42 void SetLabelOffset(Float_t val);
43
44 void SetTitleSize(Float_t val);
45
46 void SetLabelSize(Float_t val);
47
48 void SetTickLength(Float_t val);
49
50 void SetNdivisions(Int_t val);
51
52 void SetAxisColor(Int_t val);
53
54 void SetLabelColor(Int_t val);
55
56 void SetTitleColor(Int_t val);
57
58 void SetTitleFont(Int_t val);
59
60 void SetCenterTitle(Int_t val);
61
62 void SetTitle(TString val);
63
64 void SetRangeUser(Float_t min, Float_t max);
65
66 Float_t GetTitleOffset() const;
67
68 Float_t GetLabelOffset() const;
69
70 Float_t GetTitleSize() const;
71
72 Float_t GetLabelSize() const;
73
74 Float_t GetTickLength() const;
75
76 Int_t GetNDivisions() const;
77
78 Int_t GetAxisColor() const;
79
80 Int_t GetLabelColor() const;
81
82 Int_t GetTitleColor() const;
83
84 Int_t GetTitleFont() const;
85
86 Int_t GetCenterTitle() const;
87
88 TString GetTitle() const { return fTitle; };
89
90 void ExportToXML(XMLNode* node) const;
91
92 void ImportFromXML(XMLNode* node);
93
94 void Apply(TAxis& x) const;
95
96 virtual ~AxisStyle() {};
97 ClassDef(AxisStyle, 1);
98 };
99
100} /* namespace Hal */
101
102#endif /* HAL_FEATURES_HIST_AXISSTYLE_H_ */