Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TAttAxis.h

Go to the documentation of this file.
00001 // @(#)root/base:$Name:  $:$Id: TAttAxis.h,v 1.7 2002/05/03 10:48:53 brun Exp $
00002 // Author: Rene Brun   12/12/94
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TAttAxis
00013 #define ROOT_TAttAxis
00014 
00015 
00017 //                                                                      //
00018 // TAttAxis                                                             //
00019 //                                                                      //
00020 // Axis attributes.                                                     //
00021 //                                                                      //
00023 
00024 #ifndef ROOT_Gtypes
00025 #include "Gtypes.h"
00026 #endif
00027 #ifndef ROOT_Riosfwd
00028 #include "Riosfwd.h"
00029 #endif
00030 
00031 
00032 class TAttAxis {
00033 protected:
00034         Int_t        fNdivisions;   //Number of divisions(10000*n3 + 100*n2 + n1)
00035         Color_t      fAxisColor;    //color of the line axis
00036         Color_t      fLabelColor;   //color of labels
00037         Style_t      fLabelFont;    //font for labels
00038         Float_t      fLabelOffset;  //offset of labels
00039         Float_t      fLabelSize;    //size of labels
00040         Float_t      fTickLength;   //length of tick marks
00041         Float_t      fTitleOffset;  //offset of axis title
00042         Float_t      fTitleSize;    //size of axis title
00043         Color_t      fTitleColor;   //color of axis title
00044         Style_t      fTitleFont;    //font for axis title
00045 
00046 public:
00047         TAttAxis();
00048         virtual          ~TAttAxis();
00049                 void     Copy(TAttAxis &attaxis) const;
00050         virtual Int_t    GetNdivisions()  const {return fNdivisions;}
00051         virtual Color_t  GetAxisColor()   const {return fAxisColor;}
00052         virtual Color_t  GetLabelColor()  const {return fLabelColor;}
00053         virtual Style_t  GetLabelFont()   const {return fLabelFont;}
00054         virtual Float_t  GetLabelOffset() const {return fLabelOffset;}
00055         virtual Float_t  GetLabelSize()   const {return fLabelSize;}
00056         virtual Float_t  GetTitleOffset() const {return fTitleOffset;}
00057         virtual Float_t  GetTitleSize()   const {return fTitleSize;}
00058         virtual Float_t  GetTickLength()  const {return fTickLength;}
00059         virtual Color_t  GetTitleColor()  const {return fTitleColor;}
00060         virtual Style_t  GetTitleFont()   const {return fTitleFont;}
00061         virtual void     ResetAttAxis(Option_t *option="");
00062         virtual void     SaveAttributes(ofstream &out, const char *name, const char *subname);
00063         virtual void     SetNdivisions(Int_t n=510, Bool_t optim=kTRUE);  // *MENU*
00064         virtual void     SetAxisColor(Color_t color=1);        // *MENU*
00065         virtual void     SetLabelColor(Color_t color=1);       // *MENU*
00066         virtual void     SetLabelFont(Style_t font=62);        // *MENU*
00067         virtual void     SetLabelOffset(Float_t offset=0.005); // *MENU*
00068         virtual void     SetLabelSize(Float_t size=0.04);      // *MENU*
00069         virtual void     SetTickLength(Float_t length=0.03);   // *MENU*
00070         virtual void     SetTitleOffset(Float_t offset=1);     // *MENU*
00071         virtual void     SetTitleSize(Float_t size=.005);      // *MENU*
00072         virtual void     SetTitleColor(Color_t color=1);       // *MENU*
00073         virtual void     SetTitleFont(Style_t font=62);        // *MENU*
00074 
00075         ClassDef(TAttAxis,4)  //Axis attributes
00076 };
00077 
00078 #endif
00079 

Generated on Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16