TAttText
class description - source file - inheritance tree
public:
TAttText TAttText()
TAttText TAttText(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
TAttText TAttText(TAttText&)
virtual void ~TAttText()
TClass* Class()
void Copy(TAttText& atttext)
Short_t GetTextAlign()
Float_t GetTextAngle()
Color_t GetTextColor()
Font_t GetTextFont()
Float_t GetTextSize()
virtual TClass* IsA() const
virtual void Modify()
virtual void ResetAttText(Option_t* toption)
virtual void SaveTextAttributes(ofstream& out, const Text_t* name, Int_t alidef = 12, Float_t angdef = 0, Int_t coldef = 1, Int_t fondef = 61, Float_t sizdef = 1)
virtual void SetTextAlign(Short_t align = 11)
virtual void SetTextAngle(Float_t tangle = 0)
virtual void SetTextAttributes()
virtual void SetTextColor(Color_t tcolor = 1)
virtual void SetTextFont(Font_t tfont = 62)
virtual void SetTextSize(Float_t tsize = 1)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
protected:
Float_t fTextAngle Text angle
Float_t fTextSize Text size
Short_t fTextAlign Text alignment
Color_t fTextColor Text color index
Font_t fTextFont Text font number
See also
-
TButton, TDialogCanvas, TGaxis, TLegend, TLegendEntry, TPaveLabel, TPaveText, TStyle, TText, TVirtualPS, TVirtualX
*-*-*-*-*-*-*-*-*-*-*-*-*Text Attributes class*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* =====================
*-* Text attributes are:
*-* Text Alignment
*-* Text Color
*-* Text Font
*-* Text Size
*-* Text Angle
*-*
*-* This class is used (in general by secondary inheritance)
*-* by many other classes (graphics, histograms).
*-*
*-* List of the currently supported fonts (screen and PostScript)
*-* =============================================================
*-* Font ID X11 Win32 TTF lfItalic lfWeight x 10
*-* 1 : times-medium-i-normal "Times New Roman" 1 4
*-* 2 : times-bold-r-normal "Times New Roman" 0 7
*-* 3 : times-bold-i-normal "Times New Roman" 1 7
*-* 4 : helvetica-medium-r-normal "Arial" 0 4
*-* 5 : helvetica-medium-o-normal "Arial" 1 4
*-* 6 : helvetica-bold-r-normal "Arial" 0 7
*-* 7 : helvetica-bold-o-normal "Arial" 1 7
*-* 8 : courier-medium-r-normal "Courier New" 0 4
*-* 9 : courier-medium-o-normal "Courier New" 1 4
*-* 10 : courier-bold-r-normal "Courier New" 0 7
*-* 11 : courier-bold-o-normal "Courier New" 1 7
*-* 12 : symbol-medium-r-normal "Symbol" 0 6
*-* 13 : times-medium-r-normal "Times New Roman" 0 4
*-* 14 : "Wingdings" 0 4
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
TAttText()
*-*-*-*-*-*-*-*-*-*-*-*-*AttText default constructor*-*-*-*-*-*-*-*-*-*-*-*
*-* ===========================
*-* Default text attributes are taking from the current style
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
TAttText(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
*-*-*-*-*-*-*-*-*-*-*-*-*AttText normal constructor*-*-*-*-*-*-*-*-*-*-*-*
*-* ===========================
*-* Text attributes are taking from the argument list
*-* align : Text alignment = 10*HorizontalAlign + VerticalAlign
*-* For Horizontal alignment the following convention applies:
*-* 1=left adjusted, 2=centered, 3=rigth adjusted
*-* For Vertical alignment the following convention applies:
*-* 1=bottom adjusted, 2=centered, 3=top adjusted
*-* For example align = 11 = left adjusted and bottom adjusted
*-* align = 32 = right adjusted and vertically centered
*-* angle : Text angle in degrees
*-* color : Text Color Index
*-* font : Text font code = 10*fontnumber + precision
*-* Font numbers must be between 1 and 14
*-* precision = 1 fast hardware fonts (steps in the size)
*-* precision = 2 scalable and rotatable hardware fonts
*-* size : Character size expressed in percentage of the current pad height
*-* The textsize in pixels (say charheight) will be:
*-* charheight = textsize*canvas_height if current pad is horizontal.
*-* charheight = textsize*canvas_width if current pad is vertical.
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
~TAttText()
*-*-*-*-*-*-*-*-*-*-*-*-*AttText destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* =================
void Copy(TAttText &atttext)
*-*-*-*-*-*-*-*-*Copy this text attributes to a new atttext*-*-*-*-*-*-*-*-*
*-* ==========================================
void Modify()
*-*-*-*-*-*-*-*-*-*Change current text attributes if necessary*-*-*-*-*-*-*
*-* ===========================================
void ResetAttText(Option_t *)
*-*-*-*-*-*-*-*-*Reset this text attributes to default values*-*-*-*-*-*-*
*-* ============================================
void SaveTextAttributes(ofstream &out, const Text_t *name, Int_t alidef, Float_t angdef, Int_t coldef, Int_t fondef, Float_t sizdef)
Save text attributes as C++ statement(s) on output stream out
void SetTextAttributes()
*-*-*-*-*-*-*-*-*Invoke the DialogCanvas Text attributes*-*-*-*-*-*-*
*-* =======================================
Inline Functions
Short_t GetTextAlign()
Float_t GetTextAngle()
Color_t GetTextColor()
Font_t GetTextFont()
Float_t GetTextSize()
void SetTextAlign(Short_t align = 11)
void SetTextAngle(Float_t tangle = 0)
void SetTextColor(Color_t tcolor = 1)
void SetTextFont(Font_t tfont = 62)
void SetTextSize(Float_t tsize = 1)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TAttText TAttText(TAttText&)
Author: Rene Brun 12/12/94
Last update: 2.23/04 13/10/99 09.16.36 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
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.