Warning, file /include/root/TAttAxis.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TAttAxis
0013 #define ROOT_TAttAxis
0014
0015 #include "Rtypes.h"
0016
0017
0018 class TAttAxis {
0019 protected:
0020 Int_t fNdivisions;
0021 Color_t fAxisColor;
0022 Color_t fLabelColor;
0023 Style_t fLabelFont;
0024 Float_t fLabelOffset;
0025 Float_t fLabelSize;
0026 Float_t fTickLength;
0027 Float_t fTitleOffset;
0028 Float_t fTitleSize;
0029 Color_t fTitleColor;
0030 Style_t fTitleFont;
0031
0032 public:
0033 TAttAxis();
0034 virtual ~TAttAxis();
0035 void Copy(TAttAxis &attaxis) const;
0036 virtual Int_t GetNdivisions() const {return fNdivisions;}
0037 virtual Color_t GetAxisColor() const {return fAxisColor;}
0038 virtual Color_t GetLabelColor() const {return fLabelColor;}
0039 virtual Style_t GetLabelFont() const {return fLabelFont;}
0040 virtual Float_t GetLabelOffset() const {return fLabelOffset;}
0041 virtual Float_t GetLabelSize() const {return fLabelSize;}
0042 virtual Int_t GetMaxDigits() const {return (Int_t)(fNdivisions/1000000);}
0043 virtual Float_t GetTitleOffset() const {return fTitleOffset;}
0044 virtual Float_t GetTitleSize() const {return fTitleSize;}
0045 virtual Float_t GetTickLength() const {return fTickLength;}
0046 virtual Color_t GetTitleColor() const {return fTitleColor;}
0047 virtual Style_t GetTitleFont() const {return fTitleFont;}
0048 virtual void ResetAttAxis(Option_t *option="");
0049 virtual void SaveAttributes(std::ostream &out, const char *name, const char *subname);
0050 virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE);
0051 virtual void SetNdivisions(Int_t n1, Int_t n2, Int_t n3, Bool_t optim=kTRUE);
0052 virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.);
0053 virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.);
0054 virtual void SetLabelFont(Style_t font=62);
0055 virtual void SetLabelOffset(Float_t offset=0.005);
0056 virtual void SetLabelSize(Float_t size=0.04);
0057 virtual void SetMaxDigits(Int_t maxDigits = 5);
0058 virtual void SetTickLength(Float_t length=0.03);
0059 virtual void SetTickSize(Float_t size=0.03) {SetTickLength(size);}
0060 virtual void SetTitleOffset(Float_t offset=1);
0061 virtual void SetTitleSize(Float_t size=0.04);
0062 virtual void SetTitleColor(Color_t color=1);
0063 virtual void SetTitleFont(Style_t font=62);
0064
0065 ClassDef(TAttAxis,4);
0066 };
0067
0068 #endif
0069