00001 // @(#)root/base:$Name: $:$Id: TAttPad.h,v 1.5 2002/05/03 10:48:53 brun Exp $ 00002 // Author: Rene Brun 04/01/95 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_TAttPad 00013 #define ROOT_TAttPad 00014 00015 00017 // // 00018 // TAttPad // 00019 // // 00020 // Pad attributes. // 00021 // // 00023 00024 #ifndef ROOT_Gtypes 00025 #include "Gtypes.h" 00026 #endif 00027 00028 #ifndef ROOT_Htypes 00029 #include "Htypes.h" 00030 #endif 00031 00032 00033 class TAttPad { 00034 protected: 00035 Float_t fLeftMargin; //LeftMargin 00036 Float_t fRightMargin; //RightMargin 00037 Float_t fBottomMargin; //BottomMargin 00038 Float_t fTopMargin; //TopMargin 00039 Float_t fXfile; //X position where to draw the file name 00040 Float_t fYfile; //X position where to draw the file name 00041 Float_t fAfile; //Alignment for the file name 00042 Float_t fXstat; //X position where to draw the statistics 00043 Float_t fYstat; //X position where to draw the statistics 00044 Float_t fAstat; //Alignment for the statistics 00045 Color_t fFrameFillColor; //pad frame fill color 00046 Color_t fFrameLineColor; //pad frame line color 00047 Style_t fFrameFillStyle; //pad frame fill style 00048 Style_t fFrameLineStyle; //pad frame line style 00049 Width_t fFrameLineWidth; //pad frame line width 00050 Width_t fFrameBorderSize; //pad frame border size 00051 Int_t fFrameBorderMode; //pad frame border mode 00052 00053 public: 00054 TAttPad(); 00055 virtual ~TAttPad(); 00056 virtual void Copy(TAttPad &attpad) const; 00057 Float_t GetBottomMargin() const { return fBottomMargin;} 00058 Float_t GetLeftMargin() const { return fLeftMargin;} 00059 Float_t GetRightMargin() const { return fRightMargin;} 00060 Float_t GetTopMargin() const { return fTopMargin;} 00061 Float_t GetAfile() const { return fAfile;} 00062 Float_t GetXfile() const { return fXfile;} 00063 Float_t GetYfile() const { return fYfile;} 00064 Float_t GetAstat() const { return fAstat;} 00065 Float_t GetXstat() const { return fXstat;} 00066 Float_t GetYstat() const { return fYstat;} 00067 Color_t GetFrameFillColor() const {return fFrameFillColor;} 00068 Color_t GetFrameLineColor() const {return fFrameLineColor;} 00069 Style_t GetFrameFillStyle() const {return fFrameFillStyle;} 00070 Style_t GetFrameLineStyle() const {return fFrameLineStyle;} 00071 Width_t GetFrameLineWidth() const {return fFrameLineWidth;} 00072 Width_t GetFrameBorderSize() const {return fFrameBorderSize;} 00073 Int_t GetFrameBorderMode() const {return fFrameBorderMode;} 00074 virtual void Print(Option_t *option="") const; 00075 virtual void ResetAttPad(Option_t *option=""); 00076 virtual void SetBottomMargin(Float_t bottommargin); 00077 virtual void SetLeftMargin(Float_t leftmargin); 00078 virtual void SetRightMargin(Float_t rightmargin); 00079 virtual void SetTopMargin(Float_t topmargin); 00080 virtual void SetAfile(Float_t afile) { fAfile=afile;} 00081 virtual void SetXfile(Float_t xfile) { fXfile=xfile;} 00082 virtual void SetYfile(Float_t yfile) { fYfile=yfile;} 00083 virtual void SetAstat(Float_t astat) { fAstat=astat;} 00084 virtual void SetXstat(Float_t xstat) { fXstat=xstat;} 00085 virtual void SetYstat(Float_t ystat) { fYstat=ystat;} 00086 void SetFrameFillColor(Color_t color=1) {fFrameFillColor = color;} 00087 void SetFrameLineColor(Color_t color=1) {fFrameLineColor = color;} 00088 void SetFrameFillStyle(Style_t styl=0) {fFrameFillStyle = styl;} 00089 void SetFrameLineStyle(Style_t styl=0) {fFrameLineStyle = styl;} 00090 void SetFrameLineWidth(Width_t width=1) {fFrameLineWidth = width;} 00091 void SetFrameBorderSize(Width_t size=1) {fFrameBorderSize = size;} 00092 void SetFrameBorderMode(Int_t mode=1) {fFrameBorderMode = mode;} 00093 00094 ClassDef(TAttPad,3) //Pad attributes 00095 }; 00096 00097 #endif 00098
1.2.16