Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TAttPad.h
Go to the documentation of this file.
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 #include "Rtypes.h"
17 
18 
19 class TAttPad {
20 protected:
21  Float_t fLeftMargin; ///< LeftMargin
22  Float_t fRightMargin; ///< RightMargin
23  Float_t fBottomMargin; ///< BottomMargin
24  Float_t fTopMargin; ///< TopMargin
25  Float_t fXfile; ///< X position where to draw the file name
26  Float_t fYfile; ///< Y position where to draw the file name
27  Float_t fAfile; ///< Alignment for the file name
28  Float_t fXstat; ///< X position where to draw the statistics
29  Float_t fYstat; ///< Y position where to draw the statistics
30  Float_t fAstat; ///< Alignment for the statistics
31  Color_t fFrameFillColor; ///< Pad frame fill color
32  Color_t fFrameLineColor; ///< Pad frame line color
33  Style_t fFrameFillStyle; ///< Pad frame fill style
34  Style_t fFrameLineStyle; ///< Pad frame line style
35  Width_t fFrameLineWidth; ///< Pad frame line width
36  Width_t fFrameBorderSize; ///< Pad frame border size
37  Int_t fFrameBorderMode; ///< Pad frame border mode
38 
39 public:
40  TAttPad();
41  virtual ~TAttPad();
42  virtual void Copy(TAttPad &attpad) const;
43  Float_t GetBottomMargin() const { return fBottomMargin;}
44  Float_t GetLeftMargin() const { return fLeftMargin;}
45  Float_t GetRightMargin() const { return fRightMargin;}
46  Float_t GetTopMargin() const { return fTopMargin;}
47  Float_t GetAfile() const { return fAfile;}
48  Float_t GetXfile() const { return fXfile;}
49  Float_t GetYfile() const { return fYfile;}
50  Float_t GetAstat() const { return fAstat;}
51  Float_t GetXstat() const { return fXstat;}
52  Float_t GetYstat() const { return fYstat;}
53  Color_t GetFrameFillColor() const {return fFrameFillColor;}
54  Color_t GetFrameLineColor() const {return fFrameLineColor;}
55  Style_t GetFrameFillStyle() const {return fFrameFillStyle;}
56  Style_t GetFrameLineStyle() const {return fFrameLineStyle;}
57  Width_t GetFrameLineWidth() const {return fFrameLineWidth;}
58  Width_t GetFrameBorderSize() const {return fFrameBorderSize;}
59  Int_t GetFrameBorderMode() const {return fFrameBorderMode;}
60  virtual void Print(Option_t *option="") const;
61  virtual void ResetAttPad(Option_t *option="");
62  virtual void SetBottomMargin(Float_t bottommargin);
63  virtual void SetLeftMargin(Float_t leftmargin);
64  virtual void SetRightMargin(Float_t rightmargin);
65  virtual void SetTopMargin(Float_t topmargin);
66  virtual void SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top);
67  virtual void SetAfile(Float_t afile) { fAfile=afile;}
68  virtual void SetXfile(Float_t xfile) { fXfile=xfile;}
69  virtual void SetYfile(Float_t yfile) { fYfile=yfile;}
70  virtual void SetAstat(Float_t astat) { fAstat=astat;}
71  virtual void SetXstat(Float_t xstat) { fXstat=xstat;}
72  virtual void SetYstat(Float_t ystat) { fYstat=ystat;}
73  void SetFrameFillColor(Color_t color=1) {fFrameFillColor = color;}
74  void SetFrameLineColor(Color_t color=1) {fFrameLineColor = color;}
75  void SetFrameFillStyle(Style_t styl=0) {fFrameFillStyle = styl;}
76  void SetFrameLineStyle(Style_t styl=0) {fFrameLineStyle = styl;}
77  void SetFrameLineWidth(Width_t width=1) {fFrameLineWidth = width;}
78  void SetFrameBorderSize(Width_t size=1) {fFrameBorderSize = size;}
79  void SetFrameBorderMode(Int_t mode=1) {fFrameBorderMode = mode;}
80 
81  ClassDef(TAttPad,4); //Pad attributes
82 };
83 
84 #endif
85