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
21Manages 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
42void 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}
const char Option_t
Definition: RtypesCore.h:66
#define ClassImp(name)
Definition: Rtypes.h:364
Manages canvas attributes.
Definition: TAttCanvas.h:17
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:20
Float_t fXdate
X position where to draw the date.
Definition: TAttCanvas.h:22
virtual void Copy(TAttCanvas &attcanvas) const
Copy constructor.
Definition: TAttCanvas.cxx:42
TAttCanvas()
Default constructor.
Definition: TAttCanvas.cxx:27
virtual void Print(Option_t *option="") const
Print canvas attributes.
Definition: TAttCanvas.cxx:55
virtual ~TAttCanvas()
Destructor.
Definition: TAttCanvas.cxx:35
virtual void ResetAttCanvas(Option_t *option="")
Print canvas attributes.
Definition: TAttCanvas.cxx:62
Float_t fYdate
X position where to draw the date.
Definition: TAttCanvas.h:23
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:21
Float_t fXBetween
X distance between pads.
Definition: TAttCanvas.h:19
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:24