TAttText.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: TAttText.h 27861 2009-03-18 08:38:14Z brun $
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 #ifndef ROOT_TAttText
00013 #define ROOT_TAttText
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TAttText                                                             //
00019 //                                                                      //
00020 // Text attributes.                                                     //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_Rtypes
00025 #include "Rtypes.h"
00026 #endif
00027 #ifndef ROOT_Riosfwd
00028 #include "Riosfwd.h"
00029 #endif
00030 
00031 
00032 class TAttText {
00033 
00034 protected:
00035    Float_t    fTextAngle;           //Text angle
00036    Float_t    fTextSize;            //Text size
00037    Short_t    fTextAlign;           //Text alignment
00038    Color_t    fTextColor;           //Text color index
00039    Font_t     fTextFont;            //Text font number
00040 
00041 public:
00042    TAttText();
00043    TAttText(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize);
00044    virtual ~TAttText();
00045            void     Copy(TAttText &atttext) const;
00046    virtual Short_t  GetTextAlign() const {return fTextAlign;}
00047    virtual Float_t  GetTextAngle() const {return fTextAngle;}
00048    virtual Color_t  GetTextColor() const {return fTextColor;}
00049    virtual Font_t   GetTextFont()  const {return fTextFont;}
00050    virtual Float_t  GetTextSize()  const {return fTextSize;}
00051    virtual void     Modify();
00052    virtual void     ResetAttText(Option_t *toption="");
00053    virtual void     SaveTextAttributes(ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1);
00054    virtual void     SetTextAttributes();  // *MENU*
00055    virtual void     SetTextAlign(Short_t align=11) { fTextAlign = align;}
00056    virtual void     SetTextAngle(Float_t tangle=0) { fTextAngle = tangle;}  // *MENU*
00057    virtual void     SetTextColor(Color_t tcolor=1) { fTextColor = tcolor;}
00058    virtual void     SetTextFont(Font_t tfont=62) { fTextFont = tfont;}
00059    virtual void     SetTextSize(Float_t tsize=1) { fTextSize = tsize;}
00060    virtual void     SetTextSizePixels(Int_t npixels);
00061 
00062    ClassDef(TAttText,1)  //Text attributes
00063 };
00064 
00065 #endif
00066 

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