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