Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TAttPad.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   04/01/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAttPad
0013 #define ROOT_TAttPad
0014 
0015 
0016 #include "Rtypes.h"
0017 
0018 
0019 class TAttPad {
0020 protected:
0021    Float_t     fLeftMargin;      ///< LeftMargin
0022    Float_t     fRightMargin;     ///< RightMargin
0023    Float_t     fBottomMargin;    ///< BottomMargin
0024    Float_t     fTopMargin;       ///< TopMargin
0025    Float_t     fXfile;           ///< X position where to draw the file name
0026    Float_t     fYfile;           ///< Y position where to draw the file name
0027    Float_t     fAfile;           ///< Alignment for the file name
0028    Float_t     fXstat;           ///< X position where to draw the statistics
0029    Float_t     fYstat;           ///< Y position where to draw the statistics
0030    Float_t     fAstat;           ///< Alignment for the statistics
0031    Color_t     fFrameFillColor;  ///< Pad frame fill color
0032    Color_t     fFrameLineColor;  ///< Pad frame line color
0033    Style_t     fFrameFillStyle;  ///< Pad frame fill style
0034    Style_t     fFrameLineStyle;  ///< Pad frame line style
0035    Width_t     fFrameLineWidth;  ///< Pad frame line width
0036    Width_t     fFrameBorderSize; ///< Pad frame border size
0037    Int_t       fFrameBorderMode; ///< Pad frame border mode
0038 
0039 public:
0040    TAttPad();
0041    virtual ~TAttPad();
0042    virtual void     Copy(TAttPad &attpad) const;
0043    Float_t          GetBottomMargin() const { return fBottomMargin;}
0044    Float_t          GetLeftMargin() const { return fLeftMargin;}
0045    Float_t          GetRightMargin() const { return fRightMargin;}
0046    Float_t          GetTopMargin() const { return fTopMargin;}
0047    Float_t          GetAfile() const { return fAfile;}
0048    Float_t          GetXfile() const { return fXfile;}
0049    Float_t          GetYfile() const { return fYfile;}
0050    Float_t          GetAstat() const { return fAstat;}
0051    Float_t          GetXstat() const { return fXstat;}
0052    Float_t          GetYstat() const { return fYstat;}
0053    Color_t          GetFrameFillColor() const {return fFrameFillColor;}
0054    Color_t          GetFrameLineColor() const {return fFrameLineColor;}
0055    Style_t          GetFrameFillStyle() const {return fFrameFillStyle;}
0056    Style_t          GetFrameLineStyle() const {return fFrameLineStyle;}
0057    Width_t          GetFrameLineWidth() const {return fFrameLineWidth;}
0058    Width_t          GetFrameBorderSize() const {return fFrameBorderSize;}
0059    Int_t            GetFrameBorderMode() const {return fFrameBorderMode;}
0060    virtual void     Print(Option_t *option="") const;
0061    virtual void     ResetAttPad(Option_t *option="");
0062    virtual void     SetBottomMargin(Float_t bottommargin);
0063    virtual void     SetLeftMargin(Float_t leftmargin);
0064    virtual void     SetRightMargin(Float_t rightmargin);
0065    virtual void     SetTopMargin(Float_t topmargin);
0066    virtual void     SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top);
0067    virtual void     SetAfile(Float_t afile) { fAfile=afile;}
0068    virtual void     SetXfile(Float_t xfile) { fXfile=xfile;}
0069    virtual void     SetYfile(Float_t yfile) { fYfile=yfile;}
0070    virtual void     SetAstat(Float_t astat) { fAstat=astat;}
0071    virtual void     SetXstat(Float_t xstat) { fXstat=xstat;}
0072    virtual void     SetYstat(Float_t ystat) { fYstat=ystat;}
0073    void             SetFrameFillColor(Color_t color=1) {fFrameFillColor = color;}
0074    void             SetFrameLineColor(Color_t color=1) {fFrameLineColor = color;}
0075    void             SetFrameFillStyle(Style_t styl=0)  {fFrameFillStyle = styl;}
0076    void             SetFrameLineStyle(Style_t styl=0)  {fFrameLineStyle = styl;}
0077    void             SetFrameLineWidth(Width_t width=1) {fFrameLineWidth = width;}
0078    void             SetFrameBorderSize(Width_t size=1) {fFrameBorderSize = size;}
0079    void             SetFrameBorderMode(Int_t mode=1) {fFrameBorderMode = mode;}
0080 
0081    ClassDef(TAttPad,4);  //Pad attributes
0082 };
0083 
0084 #endif
0085