Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TAttText.h

Go to the documentation of this file.
00001 // @(#)root/base:$Name:  $:$Id: TAttText.h,v 1.4 2002/05/03 10:48:53 brun Exp $
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 
00017 //                                                                      //
00018 // TAttText                                                             //
00019 //                                                                      //
00020 // Text attributes.                                                     //
00021 //                                                                      //
00023 
00024 #ifndef ROOT_Gtypes
00025 #include "Gtypes.h"
00026 #endif
00027 #ifndef ROOT_TString
00028 #include "TString.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    Short_t          GetTextAlign() const {return fTextAlign;}
00047    Float_t          GetTextAngle() const {return fTextAngle;}
00048    Color_t          GetTextColor() const {return fTextColor;}
00049    Font_t           GetTextFont()  const {return fTextFont;}
00050    Float_t          GetTextSize()  const {return fTextSize;}
00051    virtual void     Modify();
00052    virtual void     ResetAttText(Option_t *toption="");
00053    virtual void     SaveTextAttributes(ofstream &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 Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16