Logo ROOT  
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 #include "Rtypes.h"
16 
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
25 
26 public:
28  virtual ~TAttCanvas();
29  virtual void Copy(TAttCanvas &attcanvas) const;
30  Float_t GetAdate() const { return fAdate;}
31  Float_t GetTitleFromTop() const { return fTitleFromTop;}
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;}
45 
46  ClassDef(TAttCanvas,1) //Canvas attributes
47 };
48 
49 #endif
50 
TAttCanvas::ResetAttCanvas
virtual void ResetAttCanvas(Option_t *option="")
Print canvas attributes.
Definition: TAttCanvas.cxx:62
TAttCanvas::fXBetween
Float_t fXBetween
X distance between pads.
Definition: TAttCanvas.h:25
TAttCanvas::fXdate
Float_t fXdate
X position where to draw the date.
Definition: TAttCanvas.h:28
TAttCanvas::SetXBetween
virtual void SetXBetween(Float_t xbetween)
Definition: TAttCanvas.h:47
TAttCanvas::GetXdate
Float_t GetXdate() const
Definition: TAttCanvas.h:39
TAttCanvas::fTitleFromTop
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:27
Float_t
float Float_t
Definition: RtypesCore.h:57
TAttCanvas::SetYBetween
virtual void SetYBetween(Float_t ybetween)
Definition: TAttCanvas.h:49
TAttCanvas::TAttCanvas
TAttCanvas()
Default constructor.
Definition: TAttCanvas.cxx:27
TAttCanvas::fAdate
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:30
TAttCanvas::GetYdate
Float_t GetYdate() const
Definition: TAttCanvas.h:41
TAttCanvas::SetYdate
virtual void SetYdate(Float_t ydate)
Definition: TAttCanvas.h:50
TAttCanvas::SetXdate
virtual void SetXdate(Float_t xdate)
Definition: TAttCanvas.h:48
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TAttCanvas::fYdate
Float_t fYdate
X position where to draw the date.
Definition: TAttCanvas.h:29
TAttCanvas::Copy
virtual void Copy(TAttCanvas &attcanvas) const
Copy constructor.
Definition: TAttCanvas.cxx:42
TAttCanvas::Print
virtual void Print(Option_t *option="") const
Print canvas attributes.
Definition: TAttCanvas.cxx:55
TAttCanvas::SetAdate
virtual void SetAdate(Float_t adate)
Definition: TAttCanvas.h:44
TAttCanvas::GetAdate
Float_t GetAdate() const
Definition: TAttCanvas.h:36
TAttCanvas::GetTitleFromTop
Float_t GetTitleFromTop() const
Definition: TAttCanvas.h:37
TAttCanvas::~TAttCanvas
virtual ~TAttCanvas()
Destructor.
Definition: TAttCanvas.cxx:35
TAttCanvas::fYBetween
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:26
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TAttCanvas::GetXBetween
Float_t GetXBetween() const
Definition: TAttCanvas.h:38
Rtypes.h
TAttCanvas::SetTitleFromTop
virtual void SetTitleFromTop(Float_t titlefromtop)
Definition: TAttCanvas.h:45
TAttCanvas::GetYBetween
Float_t GetYBetween() const
Definition: TAttCanvas.h:40
TAttCanvas
Definition: TAttCanvas.h:17