Logo ROOT  
Reference Guide
TAttCanvas.cxx
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 #include "Strlen.h"
13 #include "TAttCanvas.h"
14 
16 
17 /** \class TAttCanvas
18 \ingroup gpad
19 \ingroup GraphicsAtt
20 
21 Manages canvas attributes. Referenced by TStyle.
22 */
23 
24 ////////////////////////////////////////////////////////////////////////////////
25 /// Default constructor.
26 
28 {
30 }
31 
32 ////////////////////////////////////////////////////////////////////////////////
33 /// Destructor.
34 
36 {
37 }
38 
39 ////////////////////////////////////////////////////////////////////////////////
40 /// Copy constructor.
41 
42 void TAttCanvas::Copy(TAttCanvas &attcanvas) const
43 {
44  attcanvas.fXBetween = fXBetween;
45  attcanvas.fYBetween = fYBetween;
46  attcanvas.fTitleFromTop = fTitleFromTop;
47  attcanvas.fXdate = fXdate;
48  attcanvas.fYdate = fYdate;
49  attcanvas.fAdate = fAdate;
50 }
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// Print canvas attributes.
54 
56 {
57 }
58 
59 ////////////////////////////////////////////////////////////////////////////////
60 /// Print canvas attributes.
61 
63 {
64  fXBetween = 2;
65  fYBetween = 2;
66  fTitleFromTop = 1.2;
67  fXdate = 0.2;
68  fYdate = 0.3;
69  fAdate = 1;
70 }
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.h
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
TAttCanvas::fTitleFromTop
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:27
Strlen.h
TAttCanvas::TAttCanvas
TAttCanvas()
Default constructor.
Definition: TAttCanvas.cxx:27
TAttCanvas::fAdate
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:30
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::~TAttCanvas
virtual ~TAttCanvas()
Destructor.
Definition: TAttCanvas.cxx:35
TAttCanvas::fYBetween
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:26
TAttCanvas
Definition: TAttCanvas.h:17