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