TAttCanvas.cxx

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TAttCanvas.cxx 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   12/12/94
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #include "Strlen.h"
00013 #include "TAttCanvas.h"
00014 
00015 ClassImp(TAttCanvas)
00016 
00017 //______________________________________________________________________________
00018 //
00019 //     Manages canvas attributes. Referenced by TStyle.
00020 //
00021 
00022 //______________________________________________________________________________
00023 TAttCanvas::TAttCanvas()
00024 {
00025    // Default constructor.
00026 
00027    ResetAttCanvas();
00028 }
00029 
00030 //______________________________________________________________________________
00031 TAttCanvas::~TAttCanvas()
00032 {
00033    // Destructor.
00034 }
00035 
00036 //______________________________________________________________________________
00037 void TAttCanvas::Copy(TAttCanvas &attcanvas) const
00038 {
00039    // Copy constructor.
00040 
00041    attcanvas.fXBetween     = fXBetween;
00042    attcanvas.fYBetween     = fYBetween;
00043    attcanvas.fTitleFromTop = fTitleFromTop;
00044    attcanvas.fXdate        = fXdate;
00045    attcanvas.fYdate        = fYdate;
00046    attcanvas.fAdate        = fAdate;
00047 }
00048 
00049 //______________________________________________________________________________
00050 void TAttCanvas::Print(Option_t *) const
00051 {
00052    // Print canvas attributes.
00053 }
00054 
00055 //______________________________________________________________________________
00056 void TAttCanvas::ResetAttCanvas(Option_t *)
00057 {
00058    // Print canvas attributes.
00059 
00060    fXBetween     = 2;
00061    fYBetween     = 2;
00062    fTitleFromTop = 1.2;
00063    fXdate        = 0.2;
00064    fYdate        = 0.3;
00065    fAdate        = 1;
00066 }

Generated on Tue Jul 5 14:14:06 2011 for ROOT_528-00b_version by  doxygen 1.5.1