Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TAttCanvas.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Name:  $:$Id: TAttCanvas.h,v 1.4 2002/10/30 20:40:42 brun Exp $
00002 // Author: Rene Brun   12/12/94
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_TAttCanvas
00013 #define ROOT_TAttCanvas
00014 
00015 
00017 //                                                                      //
00018 // TAttCanvas                                                           //
00019 //                                                                      //
00020 // Canvas 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 TAttCanvas {
00034 private:
00035         Float_t    fXBetween;        //X distance between pads
00036         Float_t    fYBetween;        //Y distance between pads
00037         Float_t    fTitleFromTop;    //Y distance of Global Title from top
00038         Float_t    fXdate;           //X position where to draw the date
00039         Float_t    fYdate;           //X position where to draw the date
00040         Float_t    fAdate;           //Alignment for the date
00041 
00042 public:
00043         TAttCanvas();
00044         virtual ~TAttCanvas();
00045         virtual void     Copy(TAttCanvas &attcanvas) const;
00046         Float_t          GetAdate() const { return fAdate;}
00047         Float_t          GetTitleFromTop() const { return fTitleFromTop;}
00048         Float_t          GetXBetween() const { return fXBetween;}
00049         Float_t          GetXdate() const { return fXdate;}
00050         Float_t          GetYBetween() const { return fYBetween;}
00051         Float_t          GetYdate() const { return fYdate;}
00052         virtual void     Print(Option_t *option="") const;
00053         virtual void     ResetAttCanvas(Option_t *option="");
00054         virtual void     SetAdate(Float_t adate) { fAdate=adate;}
00055         virtual void     SetTitleFromTop(Float_t titlefromtop)
00056                                         { fTitleFromTop=titlefromtop;}
00057         virtual void     SetXBetween(Float_t xbetween) { fXBetween=xbetween;}
00058         virtual void     SetXdate(Float_t xdate) { fXdate=xdate;}
00059         virtual void     SetYBetween(Float_t ybetween) { fYBetween=ybetween;}
00060         virtual void     SetYdate(Float_t ydate) { fYdate=ydate;}
00061 
00062         ClassDef(TAttCanvas,1)  //Canvas attributes
00063 };
00064 
00065 #endif
00066 

Generated on Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16