1    	// @(#)root/base:$Id$
2    	// Author: Rene Brun   04/01/95
3    	
4    	/*************************************************************************
5    	 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
6    	 * All rights reserved.                                                  *
7    	 *                                                                       *
8    	 * For the licensing terms see $ROOTSYS/LICENSE.                         *
9    	 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
10   	 *************************************************************************/
11   	
12   	#ifndef ROOT_TAttPad
13   	#define ROOT_TAttPad
14   	
15   	
16   	//////////////////////////////////////////////////////////////////////////
17   	//                                                                      //
18   	// TAttPad                                                              //
19   	//                                                                      //
20   	// Pad attributes.                                                      //
21   	//                                                                      //
22   	//////////////////////////////////////////////////////////////////////////
23   	
24   	#ifndef ROOT_Rtypes
25   	#include "Rtypes.h"
26   	#endif
27   	
28   	
29   	class TAttPad {
30   	protected:
31   	   Float_t     fLeftMargin;      //LeftMargin
32   	   Float_t     fRightMargin;     //RightMargin
33   	   Float_t     fBottomMargin;    //BottomMargin
34   	   Float_t     fTopMargin;       //TopMargin
35   	   Float_t     fXfile;           //X position where to draw the file name
36   	   Float_t     fYfile;           //Y position where to draw the file name
37   	   Float_t     fAfile;           //Alignment for the file name
38   	   Float_t     fXstat;           //X position where to draw the statistics
39   	   Float_t     fYstat;           //Y position where to draw the statistics
40   	   Float_t     fAstat;           //Alignment for the statistics
41   	   Color_t     fFrameFillColor;  //pad frame fill color
42   	   Color_t     fFrameLineColor;  //pad frame line color
43   	   Style_t     fFrameFillStyle;  //pad frame fill style
44   	   Style_t     fFrameLineStyle;  //pad frame line style
45   	   Width_t     fFrameLineWidth;  //pad frame line width
46   	   Width_t     fFrameBorderSize; //pad frame border size
47   	   Int_t       fFrameBorderMode; //pad frame border mode
48   	
49   	public:
50   	   TAttPad();
51   	   virtual ~TAttPad();
52   	   virtual void     Copy(TAttPad &attpad) const;
53   	   Float_t          GetBottomMargin() const { return fBottomMargin;}
54   	   Float_t          GetLeftMargin() const { return fLeftMargin;}
55   	   Float_t          GetRightMargin() const { return fRightMargin;}
56   	   Float_t          GetTopMargin() const { return fTopMargin;}
57   	   Float_t          GetAfile() const { return fAfile;}
58   	   Float_t          GetXfile() const { return fXfile;}
59   	   Float_t          GetYfile() const { return fYfile;}
60   	   Float_t          GetAstat() const { return fAstat;}
61   	   Float_t          GetXstat() const { return fXstat;}
62   	   Float_t          GetYstat() const { return fYstat;}
63   	   Color_t          GetFrameFillColor() const {return fFrameFillColor;}
64   	   Color_t          GetFrameLineColor() const {return fFrameLineColor;}
65   	   Style_t          GetFrameFillStyle() const {return fFrameFillStyle;}
66   	   Style_t          GetFrameLineStyle() const {return fFrameLineStyle;}
67   	   Width_t          GetFrameLineWidth() const {return fFrameLineWidth;}
68   	   Width_t          GetFrameBorderSize() const {return fFrameBorderSize;}
69   	   Int_t            GetFrameBorderMode() const {return fFrameBorderMode;}
70   	   virtual void     Print(Option_t *option="") const;
71   	   virtual void     ResetAttPad(Option_t *option="");
72   	   virtual void     SetBottomMargin(Float_t bottommargin);
73   	   virtual void     SetLeftMargin(Float_t leftmargin);
74   	   virtual void     SetRightMargin(Float_t rightmargin);
75   	   virtual void     SetTopMargin(Float_t topmargin);
76   	   virtual void     SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top);
77   	   virtual void     SetAfile(Float_t afile) { fAfile=afile;}
78   	   virtual void     SetXfile(Float_t xfile) { fXfile=xfile;}
79   	   virtual void     SetYfile(Float_t yfile) { fYfile=yfile;}
80   	   virtual void     SetAstat(Float_t astat) { fAstat=astat;}
81   	   virtual void     SetXstat(Float_t xstat) { fXstat=xstat;}
82   	   virtual void     SetYstat(Float_t ystat) { fYstat=ystat;}
83   	   void             SetFrameFillColor(Color_t color=1) {fFrameFillColor = color;}
84   	   void             SetFrameLineColor(Color_t color=1) {fFrameLineColor = color;}
85   	   void             SetFrameFillStyle(Style_t styl=0)  {fFrameFillStyle = styl;}
86   	   void             SetFrameLineStyle(Style_t styl=0)  {fFrameLineStyle = styl;}
87   	   void             SetFrameLineWidth(Width_t width=1) {fFrameLineWidth = width;}
88   	   void             SetFrameBorderSize(Width_t size=1) {fFrameBorderSize = size;}
89   	   void             SetFrameBorderMode(Int_t mode=1) {fFrameBorderMode = mode;}
90   	
91   	   ClassDef(TAttPad,4);  //Pad attributes
92   	};
93   	
94   	#endif
95   	
96