/usr/include/root/TStyle.h is in libroot-core-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | // @(#)root/base:$Id: 5214d7dc2746ceb518366bc6c4f4068b652d5241 $
// Author: Rene Brun 12/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TStyle
#define ROOT_TStyle
//////////////////////////////////////////////////////////////////////////
// //
// TStyle //
// //
// A collection of all graphics attributes. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TAttAxis
#include "TAttAxis.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
#ifndef ROOT_TAttText
#include "TAttText.h"
#endif
#ifndef ROOT_TAttMarker
#include "TAttMarker.h"
#endif
#ifndef ROOT_TArrayI
#include "TArrayI.h"
#endif
class TBrowser;
class TStyle : public TNamed, public TAttLine, public TAttFill, public TAttMarker, public TAttText {
private:
TAttAxis fXaxis; //X axis attributes
TAttAxis fYaxis; //Y axis attributes
TAttAxis fZaxis; //Z axis attributes
Float_t fBarWidth; //width of bar for graphs
Float_t fBarOffset; //offset of bar for graphs
Int_t fColorModelPS; //PostScript color model: 0 = RGB, 1 = CMYK
Int_t fDrawBorder; //flag to draw border(=1) or not (0)
Int_t fOptLogx; //=1 if log scale in X
Int_t fOptLogy; //=1 if log scale in y
Int_t fOptLogz; //=1 if log scale in z
Int_t fOptDate; //=1 if date option is selected
Int_t fOptStat; //=1 if option Stat is selected
Int_t fOptTitle; //=1 if option Title is selected
Int_t fOptFile; //=1 if option File is selected
Int_t fOptFit; //=1 if option Fit is selected
Int_t fShowEventStatus; //Show event status panel
Int_t fShowEditor; //Show pad editor
Int_t fShowToolBar; //Show toolbar
Int_t fNumberContours; //default number of contours for 2-d plots
TAttText fAttDate; //canvas date attribute
Float_t fDateX; //X position of the date in the canvas (in NDC)
Float_t fDateY; //Y position of the date in the canvas (in NDC)
Float_t fEndErrorSize; //Size of lines at the end of error bars
Float_t fErrorX; //per cent of bin width for errors along X
Color_t fFuncColor; //function color
Style_t fFuncStyle; //function style
Width_t fFuncWidth; //function line width
Color_t fGridColor; //grid line color (if 0 use axis line color)
Style_t fGridStyle; //grid line style
Width_t fGridWidth; //grid line width
Width_t fLegendBorderSize; //legend box border size
Color_t fLegendFillColor; //legend fill color
Style_t fLegendFont; //legend font style
Int_t fHatchesLineWidth; //hatches line width for hatch styles > 3100
Double_t fHatchesSpacing; //hatches spacing for hatch styles > 3100
Color_t fFrameFillColor; //pad frame fill color
Color_t fFrameLineColor; //pad frame line color
Style_t fFrameFillStyle; //pad frame fill style
Style_t fFrameLineStyle; //pad frame line style
Width_t fFrameLineWidth; //pad frame line width
Width_t fFrameBorderSize; //pad frame border size
Int_t fFrameBorderMode; //pad frame border mode
Color_t fHistFillColor; //histogram fill color
Color_t fHistLineColor; //histogram line color
Style_t fHistFillStyle; //histogram fill style
Style_t fHistLineStyle; //histogram line style
Width_t fHistLineWidth; //histogram line width
Bool_t fHistMinimumZero; //true if default minimum is 0, false if minimum is automatic
Double_t fHistTopMargin; //margin between histogram's top and pad's top
Bool_t fCanvasPreferGL; //if true, rendering in canvas is with GL
Color_t fCanvasColor; //canvas color
Width_t fCanvasBorderSize; //canvas border size
Int_t fCanvasBorderMode; //canvas border mode
Int_t fCanvasDefH; //default canvas height
Int_t fCanvasDefW; //default canvas width
Int_t fCanvasDefX; //default canvas top X position
Int_t fCanvasDefY; //default canvas top Y position
Color_t fPadColor; //pad color
Width_t fPadBorderSize; //pad border size
Int_t fPadBorderMode; //pad border mode
Float_t fPadBottomMargin; //pad bottom margin
Float_t fPadTopMargin; //pad top margin
Float_t fPadLeftMargin; //pad left margin
Float_t fPadRightMargin; //pad right margin
Bool_t fPadGridX; //true to get the grid along X
Bool_t fPadGridY; //true to get the grid along Y
Int_t fPadTickX; //=1 to set special pad ticks along X
Int_t fPadTickY; //=1 to set special pad ticks along Y
Float_t fPaperSizeX; //PostScript paper size along X
Float_t fPaperSizeY; //PostScript paper size along Y
Float_t fScreenFactor; //Multiplication factor for canvas size and position
Color_t fStatColor; //stat fill area color
Color_t fStatTextColor; //stat text color
Width_t fStatBorderSize; //border size of Stats PaveLabel
Style_t fStatFont; //font style of Stats PaveLabel
Float_t fStatFontSize; //font size in pixels for fonts with precision type 3
Style_t fStatStyle; //fill area style of Stats PaveLabel
TString fStatFormat; //Printing format for stats
Float_t fStatX; //X position of top right corner of stat box
Float_t fStatY; //Y position of top right corner of stat box
Float_t fStatW; //width of stat box
Float_t fStatH; //height of stat box
Bool_t fStripDecimals; //Strip decimals in axis labels
Int_t fTitleAlign; //title box alignment
Color_t fTitleColor; //title fill area color
Color_t fTitleTextColor; //title text color
Width_t fTitleBorderSize; //border size of Title PavelLabel
Style_t fTitleFont; //font style of Title PaveLabel
Float_t fTitleFontSize; //font size in pixels for fonts with precision type 3
Style_t fTitleStyle; //fill area style of title PaveLabel
Float_t fTitleX; //X position of top left corner of title box
Float_t fTitleY; //Y position of top left corner of title box
Float_t fTitleW; //width of title box
Float_t fTitleH; //height of title box
Float_t fLegoInnerR; //Inner radius for cylindrical legos
TString fLineStyle[30]; //String describing line style i (for postScript)
TString fHeaderPS; //User defined additional Postscript header
TString fTitlePS; //User defined Postscript file title
TString fFitFormat; //Printing format for fit parameters
TString fPaintTextFormat; //Printing format for TH2::PaintText
Float_t fLineScalePS; //Line scale factor when drawing lines on Postscript
Double_t fTimeOffset; //Time offset to the beginning of an axis
Bool_t fIsReading; //!Set to FALSE when userclass::UseCurrentStyle is called by the style manager
public:
enum EPaperSize { kA4, kUSLetter };
TStyle();
TStyle(const char *name, const char *title);
TStyle(const TStyle &style);
virtual ~TStyle();
inline Int_t AxisChoice(Option_t *axis) const {
// Return axis number (1 for X, 2 for Y, 3 for Z)
UChar_t a = *axis;
a -= (a >= 'x') ? 'x' : 'X'; // toupper and a-='X'; intentional underflow
return (a > 2) ? 0 : (Int_t)(a+1);
};
virtual void Browse(TBrowser *b);
static void BuildStyles();
virtual void Copy(TObject &style) const;
virtual void cd();
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
Int_t GetNdivisions(Option_t *axis="X") const;
TAttText *GetAttDate() {return &fAttDate;}
Color_t GetAxisColor(Option_t *axis="X") const;
Color_t GetLabelColor(Option_t *axis="X") const;
Style_t GetLabelFont(Option_t *axis="X") const;
Float_t GetLabelOffset(Option_t *axis="X") const;
Float_t GetLabelSize(Option_t *axis="X") const;
Color_t GetTitleColor(Option_t *axis="X") const; //return axis title color of pad title color
Style_t GetTitleFont(Option_t *axis="X") const; //return axis title font of pad title font
Float_t GetTitleOffset(Option_t *axis="X") const; //return axis title offset
Float_t GetTitleSize(Option_t *axis="X") const; //return axis title size
Float_t GetTickLength(Option_t *axis="X") const;
Float_t GetBarOffset() const {return fBarOffset;}
Float_t GetBarWidth() const {return fBarWidth;}
Int_t GetDrawBorder() const {return fDrawBorder;}
Float_t GetEndErrorSize() const {return fEndErrorSize;}
Float_t GetErrorX() const {return fErrorX;}
Bool_t GetCanvasPreferGL() const {return fCanvasPreferGL;}
Color_t GetCanvasColor() const {return fCanvasColor;}
Width_t GetCanvasBorderSize() const {return fCanvasBorderSize;}
Int_t GetCanvasBorderMode() const {return fCanvasBorderMode;}
Int_t GetCanvasDefH() const {return fCanvasDefH;}
Int_t GetCanvasDefW() const {return fCanvasDefW;}
Int_t GetCanvasDefX() const {return fCanvasDefX;}
Int_t GetCanvasDefY() const {return fCanvasDefY;}
Int_t GetColorPalette(Int_t i) const;
Int_t GetColorModelPS() const {return fColorModelPS;}
Float_t GetDateX() const {return fDateX;}
Float_t GetDateY() const {return fDateY;}
const char *GetFitFormat() const {return fFitFormat.Data();}
Int_t GetHatchesLineWidth() const {return fHatchesLineWidth;}
Double_t GetHatchesSpacing() const {return fHatchesSpacing;}
Width_t GetLegendBorderSize() const {return fLegendBorderSize;}
Color_t GetLegendFillColor() const {return fLegendFillColor;}
Style_t GetLegendFont() const {return fLegendFont;}
Int_t GetNumberOfColors() const;
Color_t GetPadColor() const {return fPadColor;}
Width_t GetPadBorderSize() const {return fPadBorderSize;}
Int_t GetPadBorderMode() const {return fPadBorderMode;}
Float_t GetPadBottomMargin() const {return fPadBottomMargin;}
Float_t GetPadTopMargin() const {return fPadTopMargin;}
Float_t GetPadLeftMargin() const {return fPadLeftMargin;}
Float_t GetPadRightMargin() const {return fPadRightMargin;}
Bool_t GetPadGridX() const {return fPadGridX;}
Bool_t GetPadGridY() const {return fPadGridY;}
Int_t GetPadTickX() const {return fPadTickX;}
Int_t GetPadTickY() const {return fPadTickY;}
Color_t GetFuncColor() const {return fFuncColor;}
Style_t GetFuncStyle() const {return fFuncStyle;}
Width_t GetFuncWidth() const {return fFuncWidth;}
Color_t GetGridColor() const {return fGridColor;}
Style_t GetGridStyle() const {return fGridStyle;}
Width_t GetGridWidth() const {return fGridWidth;}
Color_t GetFrameFillColor() const {return fFrameFillColor;}
Color_t GetFrameLineColor() const {return fFrameLineColor;}
Style_t GetFrameFillStyle() const {return fFrameFillStyle;}
Style_t GetFrameLineStyle() const {return fFrameLineStyle;}
Width_t GetFrameLineWidth() const {return fFrameLineWidth;}
Width_t GetFrameBorderSize() const {return fFrameBorderSize;}
Int_t GetFrameBorderMode() const {return fFrameBorderMode;}
Color_t GetHistFillColor() const {return fHistFillColor;}
Color_t GetHistLineColor() const {return fHistLineColor;}
Style_t GetHistFillStyle() const {return fHistFillStyle;}
Style_t GetHistLineStyle() const {return fHistLineStyle;}
Width_t GetHistLineWidth() const {return fHistLineWidth;}
Bool_t GetHistMinimumZero() const {return fHistMinimumZero;}
Double_t GetHistTopMargin() const {return fHistTopMargin;}
Float_t GetLegoInnerR() const {return fLegoInnerR;}
Int_t GetNumberContours() const {return fNumberContours;}
Int_t GetOptDate() const {return fOptDate;}
Int_t GetOptFile() const {return fOptFile;}
Int_t GetOptFit() const {return fOptFit;}
Int_t GetOptStat() const {return fOptStat;}
Int_t GetOptTitle() const {return fOptTitle;}
Int_t GetOptLogx() const {return fOptLogx;}
Int_t GetOptLogy() const {return fOptLogy;}
Int_t GetOptLogz() const {return fOptLogz;}
const char *GetPaintTextFormat() const {return fPaintTextFormat.Data();}
void GetPaperSize(Float_t &xsize, Float_t &ysize) const;
Int_t GetShowEventStatus() const {return fShowEventStatus;}
Int_t GetShowEditor() const {return fShowEditor;}
Int_t GetShowToolBar() const {return fShowToolBar;}
Float_t GetScreenFactor() const {return fScreenFactor;}
Color_t GetStatColor() const {return fStatColor;}
Color_t GetStatTextColor() const {return fStatTextColor;}
Width_t GetStatBorderSize() const {return fStatBorderSize;}
Style_t GetStatFont() const {return fStatFont;}
Float_t GetStatFontSize() const {return fStatFontSize;}
Style_t GetStatStyle() const {return fStatStyle;}
const char *GetStatFormat() const {return fStatFormat.Data();}
Float_t GetStatX() const {return fStatX;}
Float_t GetStatY() const {return fStatY;}
Float_t GetStatW() const {return fStatW;}
Float_t GetStatH() const {return fStatH;}
Int_t GetStripDecimals() const {return fStripDecimals;}
Double_t GetTimeOffset() const {return fTimeOffset;} //return axis time offset
Int_t GetTitleAlign() {return fTitleAlign;} // return the histogram title TPaveLabel alignment
Color_t GetTitleFillColor() const {return fTitleColor;} //return histogram title fill area color
Color_t GetTitleTextColor() const {return fTitleTextColor;} //return histogram title text color
Style_t GetTitleStyle() const {return fTitleStyle;}
Float_t GetTitleFontSize() const {return fTitleFontSize;} //return histogram title font size
Width_t GetTitleBorderSize() const {return fTitleBorderSize;} //return border size of histogram title TPaveLabel
Float_t GetTitleXOffset() const {return GetTitleOffset("X");} //return X axis title offset
Float_t GetTitleXSize() const {return GetTitleSize("X");} //return X axis title size
Float_t GetTitleYOffset() const {return GetTitleOffset("Y");} //return Y axis title offset
Float_t GetTitleYSize() const {return GetTitleSize("Y");} //return Y axis title size
Float_t GetTitleX() const {return fTitleX;} //return left X position of histogram title TPavelabel
Float_t GetTitleY() const {return fTitleY;} //return left bottom position of histogram title TPavelabel
Float_t GetTitleW() const {return fTitleW;} //return width of histogram title TPaveLabel
Float_t GetTitleH() const {return fTitleH;} //return height of histogram title TPavelabel
const char *GetHeaderPS() const {return fHeaderPS.Data();}
const char *GetTitlePS() const {return fTitlePS.Data();}
const char *GetLineStyleString(Int_t i=1) const;
Float_t GetLineScalePS() const {return fLineScalePS;}
Bool_t IsReading() const {return fIsReading;}
virtual void Paint(Option_t *option="");
virtual void Reset(Option_t *option="");
void SetColorModelPS(Int_t c=0);
void SetFitFormat(const char *format="5.4g") {fFitFormat = format;}
void SetHeaderPS(const char *header);
void SetHatchesLineWidth(Int_t l) {fHatchesLineWidth = l;}
void SetHatchesSpacing(Double_t h) {fHatchesSpacing = TMath::Max(0.1,h);}
void SetTitlePS(const char *pstitle);
void SetLineScalePS(Float_t scale=3) {fLineScalePS=scale;}
void SetLineStyleString(Int_t i, const char *text);
void SetNdivisions(Int_t n=510, Option_t *axis="X");
void SetAxisColor(Color_t color=1, Option_t *axis="X");
void SetLabelColor(Color_t color=1, Option_t *axis="X");
void SetLabelFont(Style_t font=62, Option_t *axis="X");
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X");
void SetLabelSize(Float_t size=0.04, Option_t *axis="X");
void SetLegoInnerR(Float_t rad=0.5) {fLegoInnerR = rad;}
void SetScreenFactor(Float_t factor=1) {fScreenFactor = factor;}
void SetTickLength(Float_t length=0.03, Option_t *axis="X");
void SetTitleColor(Color_t color=1, Option_t *axis="X"); //set axis title color or pad title color
void SetTitleFont(Style_t font=62, Option_t *axis="X"); //set axis title font or pad title font
void SetTitleOffset(Float_t offset=1, Option_t *axis="X"); //set axis title offset
void SetTitleSize(Float_t size=0.02, Option_t *axis="X"); //set axis title size or pad title size
void SetNumberContours(Int_t number=20);
void SetOptDate(Int_t datefl=1);
void SetOptFile(Int_t file=1) {fOptFile = file;}
void SetOptFit(Int_t fit=1);
void SetOptLogx(Int_t logx=1) {fOptLogx = logx;}
void SetOptLogy(Int_t logy=1) {fOptLogy = logy;}
void SetOptLogz(Int_t logz=1) {fOptLogz = logz;}
void SetOptStat(Int_t stat=1);
void SetOptStat(Option_t *stat);
void SetOptTitle(Int_t tit=1) {fOptTitle = tit;}
void SetBarOffset(Float_t baroff=0.5) {fBarOffset = baroff;}
void SetBarWidth(Float_t barwidth=0.5) {fBarWidth = barwidth;}
void SetDateX(Float_t x=0.01) {fDateX = x;}
void SetDateY(Float_t y=0.01) {fDateY = y;}
void SetEndErrorSize(Float_t np=2);
void SetErrorX(Float_t errorx=0.5) {fErrorX = errorx;}
void SetCanvasPreferGL(Bool_t prefer = kTRUE) {fCanvasPreferGL=prefer;}
void SetDrawBorder(Int_t drawborder=1) {fDrawBorder = drawborder;}
void SetCanvasColor(Color_t color=19) {fCanvasColor = color;}
void SetCanvasBorderSize(Width_t size=1) {fCanvasBorderSize = size;}
void SetCanvasBorderMode(Int_t mode=1) {fCanvasBorderMode = mode;}
void SetCanvasDefH(Int_t h=500) {fCanvasDefH = h;}
void SetCanvasDefW(Int_t w=700) {fCanvasDefW = w;}
void SetCanvasDefX(Int_t topx=10) {fCanvasDefX = topx;}
void SetCanvasDefY(Int_t topy=10) {fCanvasDefY = topy;}
void SetLegendBorderSize(Width_t size=4) {fLegendBorderSize = size;}
void SetLegendFillColor(Color_t color=0) {fLegendFillColor = color;}
void SetLegendFont(Style_t font=62) {fLegendFont = font;}
void SetPadColor(Color_t color=19) {fPadColor = color;}
void SetPadBorderSize(Width_t size=1) {fPadBorderSize = size;}
void SetPadBorderMode(Int_t mode=1) {fPadBorderMode = mode;}
void SetPadBottomMargin(Float_t margin=0.1) {fPadBottomMargin=margin;}
void SetPadTopMargin(Float_t margin=0.1) {fPadTopMargin=margin;}
void SetPadLeftMargin(Float_t margin=0.1) {fPadLeftMargin=margin;}
void SetPadRightMargin(Float_t margin=0.1) {fPadRightMargin=margin;}
void SetPadGridX(Bool_t gridx) {fPadGridX = gridx;}
void SetPadGridY(Bool_t gridy) {fPadGridY = gridy;}
void SetPadTickX(Int_t tickx) {fPadTickX = tickx;}
void SetPadTickY(Int_t ticky) {fPadTickY = ticky;}
void SetFuncStyle(Style_t style=1) {fFuncStyle = style;}
void SetFuncColor(Color_t color=1) {fFuncColor = color;}
void SetFuncWidth(Width_t width=4) {fFuncWidth = width;}
void SetGridStyle(Style_t style=3) {fGridStyle = style;}
void SetGridColor(Color_t color=0) {fGridColor = color;}
void SetGridWidth(Width_t width=1) {fGridWidth = width;}
void SetFrameFillColor(Color_t color=1) {fFrameFillColor = color;}
void SetFrameLineColor(Color_t color=1) {fFrameLineColor = color;}
void SetFrameFillStyle(Style_t styl=0) {fFrameFillStyle = styl;}
void SetFrameLineStyle(Style_t styl=0) {fFrameLineStyle = styl;}
void SetFrameLineWidth(Width_t width=1) {fFrameLineWidth = width;}
void SetFrameBorderSize(Width_t size=1) {fFrameBorderSize = size;}
void SetFrameBorderMode(Int_t mode=1) {fFrameBorderMode = mode;}
void SetHistFillColor(Color_t color=1) {fHistFillColor = color;}
void SetHistLineColor(Color_t color=1) {fHistLineColor = color;}
void SetHistFillStyle(Style_t styl=0) {fHistFillStyle = styl;}
void SetHistLineStyle(Style_t styl=0) {fHistLineStyle = styl;}
void SetHistLineWidth(Width_t width=1) {fHistLineWidth = width;}
void SetHistMinimumZero(Bool_t zero=kTRUE);
void SetHistTopMargin(Double_t hmax=0.05) {fHistTopMargin = hmax;}
void SetPaintTextFormat(const char *format="g") {fPaintTextFormat = format;}
void SetPaperSize(EPaperSize size);
void SetPaperSize(Float_t xsize=20, Float_t ysize=26);
void SetStatColor(Color_t color=19) {fStatColor=color;}
void SetStatTextColor(Color_t color=1) {fStatTextColor=color;}
void SetStatStyle(Style_t style=1001) {fStatStyle=style;}
void SetStatBorderSize(Width_t size=2) {fStatBorderSize=size;}
void SetStatFont(Style_t font=62) {fStatFont=font;}
void SetStatFontSize(Float_t size=0) {fStatFontSize=size;}
void SetStatFormat(const char *format="6.4g") {fStatFormat = format;}
void SetStatX(Float_t x=0) {fStatX=x;}
void SetStatY(Float_t y=0) {fStatY=y;}
void SetStatW(Float_t w=0.19) {fStatW=w;}
void SetStatH(Float_t h=0.1) {fStatH=h;}
void SetStripDecimals(Bool_t strip=kTRUE);
void SetTimeOffset(Double_t toffset);
void SetTitleAlign(Int_t a=13) {fTitleAlign=a;}
void SetTitleFillColor(Color_t color=1) {fTitleColor=color;}
void SetTitleTextColor(Color_t color=1) {fTitleTextColor=color;}
void SetTitleStyle(Style_t style=1001) {fTitleStyle=style;}
void SetTitleFontSize(Float_t size=0) {fTitleFontSize=size;}
void SetTitleBorderSize(Width_t size=2) {fTitleBorderSize=size;}
void SetTitleXOffset(Float_t offset=1) {SetTitleOffset(offset,"X");}
void SetTitleXSize(Float_t size=0.02) {SetTitleSize(size,"X");}
void SetTitleYOffset(Float_t offset=1) {SetTitleOffset(offset,"Y");}
void SetTitleYSize(Float_t size=0.02) {SetTitleSize(size,"Y");}
void SetTitleX(Float_t x=0) {fTitleX=x;}
void SetTitleY(Float_t y=0.985) {fTitleY=y;}
void SetTitleW(Float_t w=0) {fTitleW=w;}
void SetTitleH(Float_t h=0) {fTitleH=h;}
void ToggleEventStatus() { fShowEventStatus = fShowEventStatus ? 0 : 1; }
void ToggleEditor() { fShowEditor = fShowEditor ? 0 : 1; }
void ToggleToolBar() { fShowToolBar = fShowToolBar ? 0 : 1; }
void SetIsReading(Bool_t reading=kTRUE);
void SetPalette(Int_t ncolors=0, Int_t *colors=0, Float_t alpha=1.);
void SavePrimitive(std::ostream &out, Option_t * = "");
void SaveSource(const char *filename, Option_t *option=0);
ClassDef(TStyle, 14); //A collection of all graphics attributes
};
R__EXTERN TStyle *gStyle;
#endif
|