ROOT logo
// @(#)root/base:$Id$
// Author: Rene Brun   12/12/94

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TAttAxis
#define ROOT_TAttAxis


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TAttAxis                                                             //
//                                                                      //
// Axis attributes.                                                     //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#ifndef ROOT_Riosfwd
#include "Riosfwd.h"
#endif


class TAttAxis {
protected:
   Int_t        fNdivisions;   //Number of divisions(10000*n3 + 100*n2 + n1)
   Color_t      fAxisColor;    //color of the line axis
   Color_t      fLabelColor;   //color of labels
   Style_t      fLabelFont;    //font for labels
   Float_t      fLabelOffset;  //offset of labels
   Float_t      fLabelSize;    //size of labels
   Float_t      fTickLength;   //length of tick marks
   Float_t      fTitleOffset;  //offset of axis title
   Float_t      fTitleSize;    //size of axis title
   Color_t      fTitleColor;   //color of axis title
   Style_t      fTitleFont;    //font for axis title

public:
   TAttAxis();
   virtual          ~TAttAxis();
   void     Copy(TAttAxis &attaxis) const;
   virtual Int_t    GetNdivisions()  const {return fNdivisions;}
   virtual Color_t  GetAxisColor()   const {return fAxisColor;}
   virtual Color_t  GetLabelColor()  const {return fLabelColor;}
   virtual Style_t  GetLabelFont()   const {return fLabelFont;}
   virtual Float_t  GetLabelOffset() const {return fLabelOffset;}
   virtual Float_t  GetLabelSize()   const {return fLabelSize;}
   virtual Float_t  GetTitleOffset() const {return fTitleOffset;}
   virtual Float_t  GetTitleSize()   const {return fTitleSize;}
   virtual Float_t  GetTickLength()  const {return fTickLength;}
   virtual Color_t  GetTitleColor()  const {return fTitleColor;}
   virtual Style_t  GetTitleFont()   const {return fTitleFont;}
   virtual void     ResetAttAxis(Option_t *option="");
   virtual void     SaveAttributes(ostream &out, const char *name, const char *subname);
   virtual void     SetNdivisions(Int_t n=510, Bool_t optim=kTRUE);   // *MENU*
   virtual void     SetNdivisions(Int_t n1, Int_t n2, Int_t n3, Bool_t optim=kTRUE);
   virtual void     SetAxisColor(Color_t color=1, Float_t alpha=1.);  // *MENU*
   virtual void     SetLabelColor(Color_t color=1, Float_t alpha=1.); // *MENU*
   virtual void     SetLabelFont(Style_t font=62);                    // *MENU*
   virtual void     SetLabelOffset(Float_t offset=0.005);             // *MENU*
   virtual void     SetLabelSize(Float_t size=0.04);                  // *MENU*
   virtual void     SetTickLength(Float_t length=0.03);               // *MENU*
   virtual void     SetTickSize(Float_t size=0.03) {SetTickLength(size);}
   virtual void     SetTitleOffset(Float_t offset=1);                 // *MENU*
   virtual void     SetTitleSize(Float_t size=0.04);                  // *MENU*
   virtual void     SetTitleColor(Color_t color=1);                   // *MENU*
   virtual void     SetTitleFont(Style_t font=62);                    // *MENU*

   ClassDef(TAttAxis,4);  //Axis attributes
};

#endif

 TAttAxis.h:1
 TAttAxis.h:2
 TAttAxis.h:3
 TAttAxis.h:4
 TAttAxis.h:5
 TAttAxis.h:6
 TAttAxis.h:7
 TAttAxis.h:8
 TAttAxis.h:9
 TAttAxis.h:10
 TAttAxis.h:11
 TAttAxis.h:12
 TAttAxis.h:13
 TAttAxis.h:14
 TAttAxis.h:15
 TAttAxis.h:16
 TAttAxis.h:17
 TAttAxis.h:18
 TAttAxis.h:19
 TAttAxis.h:20
 TAttAxis.h:21
 TAttAxis.h:22
 TAttAxis.h:23
 TAttAxis.h:24
 TAttAxis.h:25
 TAttAxis.h:26
 TAttAxis.h:27
 TAttAxis.h:28
 TAttAxis.h:29
 TAttAxis.h:30
 TAttAxis.h:31
 TAttAxis.h:32
 TAttAxis.h:33
 TAttAxis.h:34
 TAttAxis.h:35
 TAttAxis.h:36
 TAttAxis.h:37
 TAttAxis.h:38
 TAttAxis.h:39
 TAttAxis.h:40
 TAttAxis.h:41
 TAttAxis.h:42
 TAttAxis.h:43
 TAttAxis.h:44
 TAttAxis.h:45
 TAttAxis.h:46
 TAttAxis.h:47
 TAttAxis.h:48
 TAttAxis.h:49
 TAttAxis.h:50
 TAttAxis.h:51
 TAttAxis.h:52
 TAttAxis.h:53
 TAttAxis.h:54
 TAttAxis.h:55
 TAttAxis.h:56
 TAttAxis.h:57
 TAttAxis.h:58
 TAttAxis.h:59
 TAttAxis.h:60
 TAttAxis.h:61
 TAttAxis.h:62
 TAttAxis.h:63
 TAttAxis.h:64
 TAttAxis.h:65
 TAttAxis.h:66
 TAttAxis.h:67
 TAttAxis.h:68
 TAttAxis.h:69
 TAttAxis.h:70
 TAttAxis.h:71
 TAttAxis.h:72
 TAttAxis.h:73
 TAttAxis.h:74
 TAttAxis.h:75
 TAttAxis.h:76
 TAttAxis.h:77
 TAttAxis.h:78
 TAttAxis.h:79
 TAttAxis.h:80
 TAttAxis.h:81