Logo ROOT   6.08/07
Reference Guide
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 12/12/94
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  *************************************************************************/
12 #ifndef ROOT_TAttCanvas
13 #define ROOT_TAttCanvas
15 #ifndef ROOT_Rtypes
16 #include "Rtypes.h"
17 #endif
19 class TAttCanvas {
20 private:
21  Float_t fXBetween; ///< X distance between pads
22  Float_t fYBetween; ///< Y distance between pads
23  Float_t fTitleFromTop; ///< Y distance of Global Title from top
24  Float_t fXdate; ///< X position where to draw the date
25  Float_t fYdate; ///< X position where to draw the date
26  Float_t fAdate; ///< Alignment for the date
28 public:
29  TAttCanvas();
30  virtual ~TAttCanvas();
31  virtual void Copy(TAttCanvas &attcanvas) const;
32  Float_t GetAdate() const { return fAdate;}
34  Float_t GetXBetween() const { return fXBetween;}
35  Float_t GetXdate() const { return fXdate;}
36  Float_t GetYBetween() const { return fYBetween;}
37  Float_t GetYdate() const { return fYdate;}
38  virtual void Print(Option_t *option="") const;
39  virtual void ResetAttCanvas(Option_t *option="");
40  virtual void SetAdate(Float_t adate) { fAdate=adate;}
41  virtual void SetTitleFromTop(Float_t titlefromtop)
42  { fTitleFromTop=titlefromtop;}
43  virtual void SetXBetween(Float_t xbetween) { fXBetween=xbetween;}
44  virtual void SetXdate(Float_t xdate) { fXdate=xdate;}
45  virtual void SetYBetween(Float_t ybetween) { fYBetween=ybetween;}
46  virtual void SetYdate(Float_t ydate) { fYdate=ydate;}
48  ClassDef(TAttCanvas,1) //Canvas attributes
49 };
51 #endif
Default constructor.
Definition: TAttCanvas.cxx:27
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:22
Float_t fYdate
X position where to draw the date.
Definition: TAttCanvas.h:25
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
virtual void Print(Option_t *option="") const
Print canvas attributes.
Definition: TAttCanvas.cxx:55
virtual ~TAttCanvas()
Definition: TAttCanvas.cxx:35
Float_t GetTitleFromTop() const
Definition: TAttCanvas.h:33
virtual void SetTitleFromTop(Float_t titlefromtop)
Definition: TAttCanvas.h:41
virtual void SetXBetween(Float_t xbetween)
Definition: TAttCanvas.h:43
virtual void Copy(TAttCanvas &attcanvas) const
Copy constructor.
Definition: TAttCanvas.cxx:42
Float_t fXdate
X position where to draw the date.
Definition: TAttCanvas.h:24
#define ClassDef(name, id)
Definition: Rtypes.h:254
Manages canvas attributes.
Definition: TAttCanvas.h:19
Float_t GetXdate() const
Definition: TAttCanvas.h:35
Float_t fXBetween
X distance between pads.
Definition: TAttCanvas.h:21
virtual void ResetAttCanvas(Option_t *option="")
Print canvas attributes.
Definition: TAttCanvas.cxx:62
Float_t GetYBetween() const
Definition: TAttCanvas.h:36
virtual void SetYBetween(Float_t ybetween)
Definition: TAttCanvas.h:45
Float_t GetXBetween() const
Definition: TAttCanvas.h:34
virtual void SetAdate(Float_t adate)
Definition: TAttCanvas.h:40
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:26
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:23
Float_t GetYdate() const
Definition: TAttCanvas.h:37
virtual void SetXdate(Float_t xdate)
Definition: TAttCanvas.h:44
virtual void SetYdate(Float_t ydate)
Definition: TAttCanvas.h:46
Float_t GetAdate() const
Definition: TAttCanvas.h:32