ROOT  6.06/09
Reference Guide
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 //////////////////////////////////////////////////////////////////////////
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;
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;}
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 
Float_t GetAstat() const
Definition: TAttPad.h:60
void SetFrameLineColor(Color_t color=1)
Definition: TAttPad.h:84
Float_t GetYstat() const
Definition: TAttPad.h:62
Float_t fXfile
Definition: TAttPad.h:35
virtual void SetXstat(Float_t xstat)
Definition: TAttPad.h:81
Int_t GetFrameBorderMode() const
Definition: TAttPad.h:69
virtual void Copy(TAttPad &attpad) const
copy function
Definition: TAttPad.cxx:42
Color_t GetFrameLineColor() const
Definition: TAttPad.h:64
Style_t fFrameFillStyle
Definition: TAttPad.h:43
short Style_t
Definition: RtypesCore.h:76
Width_t GetFrameBorderSize() const
Definition: TAttPad.h:68
Float_t fYstat
Definition: TAttPad.h:39
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
Float_t fAstat
Definition: TAttPad.h:40
Manages default Pad attributes.
Definition: TAttPad.h:29
void SetFrameBorderMode(Int_t mode=1)
Definition: TAttPad.h:89
Float_t fBottomMargin
Definition: TAttPad.h:33
Float_t fYfile
Definition: TAttPad.h:36
Width_t fFrameBorderSize
Definition: TAttPad.h:46
ClassDef(TAttPad, 4)
int Int_t
Definition: RtypesCore.h:41
virtual void SetAfile(Float_t afile)
Definition: TAttPad.h:77
virtual void ResetAttPad(Option_t *option="")
Reset pad attributes.
Definition: TAttPad.cxx:73
Float_t fTopMargin
Definition: TAttPad.h:34
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
Definition: TAttPad.cxx:127
void SetFrameFillStyle(Style_t styl=0)
Definition: TAttPad.h:85
Float_t GetTopMargin() const
Definition: TAttPad.h:56
Float_t GetRightMargin() const
Definition: TAttPad.h:55
Float_t GetBottomMargin() const
Definition: TAttPad.h:53
virtual void SetYfile(Float_t yfile)
Definition: TAttPad.h:79
Float_t fAfile
Definition: TAttPad.h:37
virtual void SetXfile(Float_t xfile)
Definition: TAttPad.h:78
Width_t fFrameLineWidth
Definition: TAttPad.h:45
Float_t fXstat
Definition: TAttPad.h:38
short Color_t
Definition: RtypesCore.h:79
virtual void SetYstat(Float_t ystat)
Definition: TAttPad.h:82
Color_t fFrameLineColor
Definition: TAttPad.h:42
Style_t GetFrameFillStyle() const
Definition: TAttPad.h:65
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
Definition: TAttPad.cxx:97
Style_t fFrameLineStyle
Definition: TAttPad.h:44
Float_t GetXfile() const
Definition: TAttPad.h:58
Style_t GetFrameLineStyle() const
Definition: TAttPad.h:66
Float_t fLeftMargin
Definition: TAttPad.h:31
void SetFrameLineStyle(Style_t styl=0)
Definition: TAttPad.h:86
short Width_t
Definition: RtypesCore.h:78
virtual ~TAttPad()
Destructor.
Definition: TAttPad.cxx:35
Color_t GetFrameFillColor() const
Definition: TAttPad.h:63
Float_t GetLeftMargin() const
Definition: TAttPad.h:54
virtual void Print(Option_t *option="") const
Print function.
Definition: TAttPad.cxx:66
Int_t fFrameBorderMode
Definition: TAttPad.h:47
Float_t GetAfile() const
Definition: TAttPad.h:57
virtual void SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top)
Set all margins.
Definition: TAttPad.cxx:137
virtual void SetAstat(Float_t astat)
Definition: TAttPad.h:80
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
Definition: TAttPad.cxx:117
Float_t fRightMargin
Definition: TAttPad.h:32
void SetFrameBorderSize(Width_t size=1)
Definition: TAttPad.h:88
Float_t GetYfile() const
Definition: TAttPad.h:59
Width_t GetFrameLineWidth() const
Definition: TAttPad.h:67
void SetFrameLineWidth(Width_t width=1)
Definition: TAttPad.h:87
void SetFrameFillColor(Color_t color=1)
Definition: TAttPad.h:83
Color_t fFrameFillColor
Definition: TAttPad.h:41
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
Definition: TAttPad.cxx:107
Float_t GetXstat() const
Definition: TAttPad.h:61