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