Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:31

0001 // @(#)root/graf:$Id$
0002 // Author: Olivier Couet
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2023, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAxisModLab
0013 #define ROOT_TAxisModLab
0014 
0015 #include "TObject.h"
0016 
0017 #include "TAttText.h"
0018 
0019 #include "TString.h"
0020 
0021 class TAxisModLab : public TObject, public TAttText {
0022 
0023 private:
0024    Int_t fLabNum;      ///< Label number.
0025    Double_t fLabValue; ///< Label value, used when label number is 0
0026    TString fLabText;   ///< Alternative label text
0027 
0028 public:
0029 
0030    TAxisModLab();
0031 
0032    void SetLabNum(Int_t n = 0);
0033    void SetLabValue(Double_t v = 0.);
0034    void SetAngle(Double_t a = -1.);
0035    void SetSize(Double_t s = -1.);
0036    void SetAlign(Int_t a = -1);
0037    void SetColor(Int_t c = -1);
0038    void SetFont(Int_t f = -1);
0039    void SetText(TString t = "");
0040 
0041    Int_t GetLabNum() const { return fLabNum; }
0042    Double_t GetLabValue() const { return fLabValue; }
0043    Double_t GetAngle() const { return fTextAngle; }
0044    Double_t GetSize() const { return fTextSize; }
0045    Int_t GetAlign() const { return fTextAlign; }
0046    Int_t GetColor() const { return fTextColor; }
0047    Int_t GetFont() const { return fTextFont; }
0048    const TString &GetText() const { return fLabText; }
0049 
0050    ClassDefOverride(TAxisModLab,4)  // Modified axis label
0051 };
0052 
0053 #endif