ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Style/interface/HistStyle.h
Revision: 1.2
Committed: Tue Jan 25 11:30:31 2011 UTC (14 years, 3 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.1: +50 -0 lines
Log Message:
2nd try

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HistStyle.h,v 1.1.2.2 2010/10/12 21:25:04 paus Exp $
3 //
4 // HistStyle
5 //
6 // This class implements HistStyle which defines a set of style features to be used to
7 // create a nicely fitting plot of a histogram.
8 //
9 // Authors: C.Paus
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPLOTS_STYLE_HISTSTYLE_H
13 #define MITPLOTS_STYLE_HISTSTYLE_H
14
15 #include <TString.h>
16
17 namespace mithep
18 {
19 class HistStyle
20 {
21 public:
22 HistStyle();
23 ~HistStyle() {}
24 // return the attribute
25 int Color() const { return fColor; }
26 float LineWidth() const { return fLineWidth; }
27 int FillStyle() const { return fFillStyle; }
28 int MarkerStyle() const { return fMarkerStyle; }
29 float MarkerSize() const { return fMarkerSize; }
30 // set the attribute
31 void SetColor (int i) { fColor = i; }
32 void SetLineWidth (float f) { fLineWidth = f; }
33 void SetFillStyle (int i) { fFillStyle = i; }
34 void SetMarkerStyle(int i) { fMarkerStyle = i; }
35 void SetMarkerSize (float f) { fMarkerSize = f; }
36 // helpers
37 void Show() const; // show sample properties
38
39 private:
40 // contents of the style
41 int fColor;
42 float fLineWidth;
43 int fFillStyle;
44 int fMarkerStyle;
45 float fMarkerSize;
46
47 ClassDef(HistStyle, 0) // Interface to HistStyle
48 };
49 }
50 #endif