ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Style/interface/HistStyle.h
Revision: 1.2
Committed: Sun Oct 3 03:51:15 2010 UTC (14 years, 7 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
Error in cvs use.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HistStyle.h,v 1.1 2010/10/03 03:40:00 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 MarkerType() const { return fMarkerType; }
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 SetMarkerType(int i) { fMarkerType = 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 fMarkerType;
45 float fMarkerSize;
46
47 ClassDef(HistStyle, 0) // Interface to HistStyle
48 };
49 }
50 #endif