Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
15 ClassImp(TAttCanvas);
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 
27 TAttCanvas::TAttCanvas()
28 {
29  ResetAttCanvas();
30 }
31 
32 ////////////////////////////////////////////////////////////////////////////////
33 /// Destructor.
34 
35 TAttCanvas::~TAttCanvas()
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 
55 void TAttCanvas::Print(Option_t *) const
56 {
57 }
58 
59 ////////////////////////////////////////////////////////////////////////////////
60 /// Print canvas attributes.
61 
62 void TAttCanvas::ResetAttCanvas(Option_t *)
63 {
64  fXBetween = 2;
65  fYBetween = 2;
66  fTitleFromTop = 1.2;
67  fXdate = 0.2;
68  fYdate = 0.3;
69  fAdate = 1;
70 }