#ifndef ROOT_TStyle
#define ROOT_TStyle
#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;
TAttAxis fYaxis;
TAttAxis fZaxis;
Float_t fBarWidth;
Float_t fBarOffset;
Int_t fColorModelPS;
Int_t fDrawBorder;
Int_t fOptLogx;
Int_t fOptLogy;
Int_t fOptLogz;
Int_t fOptDate;
Int_t fOptStat;
Int_t fOptTitle;
Int_t fOptFile;
Int_t fOptFit;
Int_t fShowEventStatus;
Int_t fShowEditor;
Int_t fShowToolBar;
Int_t fNumberContours;
TAttText fAttDate;
Float_t fDateX;
Float_t fDateY;
Float_t fEndErrorSize;
Float_t fErrorX;
Color_t fFuncColor;
Style_t fFuncStyle;
Width_t fFuncWidth;
Color_t fGridColor;
Style_t fGridStyle;
Width_t fGridWidth;
Width_t fLegendBorderSize;
Int_t fHatchesLineWidth;
Double_t fHatchesSpacing;
Color_t fFrameFillColor;
Color_t fFrameLineColor;
Style_t fFrameFillStyle;
Style_t fFrameLineStyle;
Width_t fFrameLineWidth;
Width_t fFrameBorderSize;
Int_t fFrameBorderMode;
Color_t fHistFillColor;
Color_t fHistLineColor;
Style_t fHistFillStyle;
Style_t fHistLineStyle;
Width_t fHistLineWidth;
Bool_t fHistMinimumZero;
Double_t fHistTopMargin;
Bool_t fCanvasPreferGL;
Color_t fCanvasColor;
Width_t fCanvasBorderSize;
Int_t fCanvasBorderMode;
Int_t fCanvasDefH;
Int_t fCanvasDefW;
Int_t fCanvasDefX;
Int_t fCanvasDefY;
Color_t fPadColor;
Width_t fPadBorderSize;
Int_t fPadBorderMode;
Float_t fPadBottomMargin;
Float_t fPadTopMargin;
Float_t fPadLeftMargin;
Float_t fPadRightMargin;
Bool_t fPadGridX;
Bool_t fPadGridY;
Int_t fPadTickX;
Int_t fPadTickY;
Float_t fPaperSizeX;
Float_t fPaperSizeY;
Float_t fScreenFactor;
Color_t fStatColor;
Color_t fStatTextColor;
Width_t fStatBorderSize;
Style_t fStatFont;
Float_t fStatFontSize;
Style_t fStatStyle;
TString fStatFormat;
Float_t fStatX;
Float_t fStatY;
Float_t fStatW;
Float_t fStatH;
Bool_t fStripDecimals;
Int_t fTitleAlign;
Color_t fTitleColor;
Color_t fTitleTextColor;
Width_t fTitleBorderSize;
Style_t fTitleFont;
Float_t fTitleFontSize;
Style_t fTitleStyle;
Float_t fTitleX;
Float_t fTitleY;
Float_t fTitleW;
Float_t fTitleH;
Float_t fLegoInnerR;
TString fLineStyle[30];
TString fHeaderPS;
TString fTitlePS;
TString fFitFormat;
TString fPaintTextFormat;
Float_t fLineScalePS;
Double_t fTimeOffset;
Bool_t fIsReading;
public:
enum EPaperSize { kA4, kUSLetter };
TStyle();
TStyle(const char *name, const char *title);
TStyle(const TStyle &style);
virtual ~TStyle();
Int_t AxisChoice(Option_t *axis) const;
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;
Style_t GetTitleFont(Option_t *axis="X") const;
Float_t GetTitleOffset(Option_t *axis="X") const;
Float_t GetTitleSize(Option_t *axis="X") const;
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;}
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;}
Int_t GetTitleAlign() {return fTitleAlign;}
Color_t GetTitleFillColor() const {return fTitleColor;}
Color_t GetTitleTextColor() const {return fTitleTextColor;}
Style_t GetTitleStyle() const {return fTitleStyle;}
Float_t GetTitleFontSize() const {return fTitleFontSize;}
Width_t GetTitleBorderSize() const {return fTitleBorderSize;}
Float_t GetTitleXOffset() const {return GetTitleOffset("X");}
Float_t GetTitleXSize() const {return GetTitleSize("X");}
Float_t GetTitleYOffset() const {return GetTitleOffset("Y");}
Float_t GetTitleYSize() const {return GetTitleSize("Y");}
Float_t GetTitleX() const {return fTitleX;}
Float_t GetTitleY() const {return fTitleY;}
Float_t GetTitleW() const {return fTitleW;}
Float_t GetTitleH() const {return fTitleH;}
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");
void SetTitleFont(Style_t font=62, Option_t *axis="X");
void SetTitleOffset(Float_t offset=1, Option_t *axis="X");
void SetTitleSize(Float_t size=0.02, Option_t *axis="X");
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 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(Int_t color=19) {fStatColor=color;}
void SetStatTextColor(Int_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);
void SavePrimitive(ostream &out, Option_t * = "");
void SaveSource(const char *filename, Option_t *option=0);
ClassDef(TStyle, 13);
};
R__EXTERN TStyle *gStyle;
#endif