//*CMZ :  1.03/09 06/12/97  16.52.17  by  Fons Rademakers
//*-- Author :    Rene Brun   04/01/95

//*KEEP,CopyRight,T=C.
/*************************************************************************
 * Copyright(c) 1995-1999, The ROOT System, All rights reserved.         *
 * Authors: Rene Brun, Fons Rademakers.                                  *
 * For list of contributors see $ROOTSYS/AA_CREDITS.                     *
 *                                                                       *
 * Permission to use, copy, modify and distribute this software and its  *
 * documentation for non-commercial purposes is hereby granted without   *
 * fee, provided that the above copyright notice appears in all copies   *
 * and that both the copyright notice and this permission notice appear  *
 * in the supporting documentation. The authors make no claims about the *
 * suitability of this software for any purpose. It is provided "as is"  *
 * without express or implied warranty.                                  *
 *************************************************************************/
//*KEND.

//*KEEP,TAttStat.
#include "TAttStat.h"
//*KEND.

ClassImp(TAttStat)

//______________________________________________________________________________
//
//  Manages default histogram statistics style and options.
//  Referenced by TStyle.
//

//______________________________________________________________________________
 TAttStat::TAttStat()
{
   Reset();
}

//______________________________________________________________________________
 TAttStat::TAttStat(Color_t color, Style_t style, Float_t w, Float_t h, Float_t x, Float_t y)
{
   fStatColor = color;
   fStatStyle = style;
   fStatX     = x;
   fStatY     = y;
   fStatW     = w;
   fStatH     = h;
   if (x == 0) fStatX = 1-fStatW-0.01;
   if (y == 0) fStatY = 1-fStatH-0.01;
}

//______________________________________________________________________________
 TAttStat::~TAttStat()
{
}

//______________________________________________________________________________
 void TAttStat::Copy(TAttStat &attstat)
{
   attstat.fStatColor  = fStatColor;
   attstat.fStatStyle  = fStatStyle;
   attstat.fStatX      = fStatX;
   attstat.fStatY      = fStatY;
   attstat.fStatW      = fStatW;
   attstat.fStatH      = fStatH;
}

//______________________________________________________________________________
 void TAttStat::Reset(Option_t *)
{
   fStatColor  = 19;
   fStatStyle  = 1;
   fStatW      = 0.20;
   fStatH      = 0.16;
   fStatX      = 0.99;
   fStatY      = 0.99;
}


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.