Logo ROOT   6.14/05
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 #include "Rtypes.h"
17 class TAttCanvas {
18 private:
19  Float_t fXBetween; ///< X distance between pads
20  Float_t fYBetween; ///< Y distance between pads
21  Float_t fTitleFromTop; ///< Y distance of Global Title from top
22  Float_t fXdate; ///< X position where to draw the date
23  Float_t fYdate; ///< X position where to draw the date
24  Float_t fAdate; ///< Alignment for the date
26 public:
27  TAttCanvas();
28  virtual ~TAttCanvas();
29  virtual void Copy(TAttCanvas &attcanvas) const;
30  Float_t GetAdate() const { return fAdate;}
32  Float_t GetXBetween() const { return fXBetween;}
33  Float_t GetXdate() const { return fXdate;}
34  Float_t GetYBetween() const { return fYBetween;}
35  Float_t GetYdate() const { return fYdate;}
36  virtual void Print(Option_t *option="") const;
37  virtual void ResetAttCanvas(Option_t *option="");
38  virtual void SetAdate(Float_t adate) { fAdate=adate;}
39  virtual void SetTitleFromTop(Float_t titlefromtop)
40  { fTitleFromTop=titlefromtop;}
41  virtual void SetXBetween(Float_t xbetween) { fXBetween=xbetween;}
42  virtual void SetXdate(Float_t xdate) { fXdate=xdate;}
43  virtual void SetYBetween(Float_t ybetween) { fYBetween=ybetween;}
44  virtual void SetYdate(Float_t ydate) { fYdate=ydate;}
46  ClassDef(TAttCanvas,1) //Canvas attributes
47 };
49 #endif
Default constructor.
Definition: TAttCanvas.cxx:27
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:20
Float_t fYdate
X position where to draw the date.
Definition: TAttCanvas.h:23
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:31
virtual void SetTitleFromTop(Float_t titlefromtop)
Definition: TAttCanvas.h:39
virtual void SetXBetween(Float_t xbetween)
Definition: TAttCanvas.h:41
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:22
#define ClassDef(name, id)
Definition: Rtypes.h:320
Manages canvas attributes.
Definition: TAttCanvas.h:17
Float_t GetXdate() const
Definition: TAttCanvas.h:33
Float_t fXBetween
X distance between pads.
Definition: TAttCanvas.h:19
virtual void ResetAttCanvas(Option_t *option="")
Print canvas attributes.
Definition: TAttCanvas.cxx:62
Float_t GetYBetween() const
Definition: TAttCanvas.h:34
virtual void SetYBetween(Float_t ybetween)
Definition: TAttCanvas.h:43
Float_t GetXBetween() const
Definition: TAttCanvas.h:32
virtual void SetAdate(Float_t adate)
Definition: TAttCanvas.h:38
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:24
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:21
Float_t GetYdate() const
Definition: TAttCanvas.h:35
virtual void SetXdate(Float_t xdate)
Definition: TAttCanvas.h:42
virtual void SetYdate(Float_t ydate)
Definition: TAttCanvas.h:44
Float_t GetAdate() const
Definition: TAttCanvas.h:30