OOFILE  1.9
oofSting.h
Go to the documentation of this file.
1 // COPYRIGHT 1996 A.D. Software, All rights reserved
2 
3 /*
4 oofSting.h
5 
6 Contains all the setting options for a graph
7 
8 */
9 #ifndef H_oofSting
10 #define H_oofSting
11 
12 #ifndef H_OOFbool
13  #include "oofbool.h"
14 #endif
15 #ifndef H_OOFGEOS
16  #include "oofGeos.h"
17 #endif
18 
25 public:
29  bool hasLegend() const;
30  void hasLegend(bool);
31 
32  bool has3DEffect() const;
33  void has3DEffect(bool);
34 
35  bool hasTitle() const;
36  void hasTitle(bool);
37 
38  bool hasValuesOverColumns() const;
39  void hasValuesOverColumns(bool);
40 
41  bool hasValuesNextToBars() const;
42  void hasValuesNextToBars(bool);
43 
44  bool hasXLabel() const;
45  void hasXLabel(bool);
46 
47  bool hasYLabel() const;
48  void hasYLabel(bool);
49 
50  bool hasXAxisTicks() const;
51  void hasXAxisTicks(bool);
52 
53  bool hasYAxisTicks() const;
54  void hasYAxisTicks(bool);
55 
56  bool hasXTickLabels() const;
57  void hasXTickLabels(bool);
58 
59  bool hasYTickLabels() const;
60  void hasYTickLabels(bool);
61 
62  oofGeo::PositionState titlePos() const;
63  void titlePos(oofGeo::PositionState);
64 
65  oofGeo::PositionState XLabelPos() const;
66  void XLabelPos(oofGeo::PositionState);
67 
68  oofGeo::PositionState YLabelPos() const;
69  void YLabelPos(oofGeo::PositionState);
70 
71  double the3DEffectMultiplier() const;
72  void the3DEffectMultiplier(double);
73 
74  unsigned short legendOffset() const;
75  void legendOffset(unsigned short);
76 
77  unsigned short maxYLabelLen() const;
78  void maxYLabelLen(unsigned short);
79 
80  unsigned short maxYTickLabelLen() const;
81  void maxYTickLabelLen(unsigned short);
82 
83  unsigned short maxLegendLen() const;
84  void maxLegendLen(unsigned short);
85 
86  unsigned short minorTickSize() const;
87  void minorTickSize(unsigned short);
88 
89  unsigned short majorTickSize() const;
90  void majorTickSize(unsigned short);
91 
92  unsigned short YAxisHeight() const;
93  void YAxisHeight(unsigned short);
94 
95  const char* intTickLabelMask() const;
96  void intTickLabelMask(const char*);
97 
98  const char* realTickLabelMask() const;
99  void realTickLabelMask(const char*);
100 
101 
102  unsigned int& refcount();
103 
104 private:
105 // *** WARNING *****
106 // if you add any settings, remember to update oofGraphDefaultSettings ctor
107 // as well as our ctor, copy ctor & dtor
108 
109 // all pointers below here are owned
110  bool * mHasLegend;
111  bool * mHas3DEffect;
112  bool * mHasTitle;
113  bool * mHasValuesOverColumns;
114  bool * mHasValuesNextToBars;
115  bool * mHasXAxisTicks;
116  bool * mHasYAxisTicks;
117  bool * mHasXTickLabels;
118  bool * mHasYTickLabels;
119  oofGeo::PositionState * mTitlePos;
120  oofGeo::PositionState * mXLabelPos;
121  oofGeo::PositionState * mYLabelPos;
122  unsigned short* mMaxYLabelLen;
123  unsigned short* mMaxLegendLen;
124  unsigned short* mMinorTickSize;
125  unsigned short* mMajorTickSize;
126  unsigned short* mYAxisHeight;
127  unsigned short* mLegendOffset;
128  double * m3DEffectMultiplier;
129  bool * mHasXLabel;
130  bool * mHasYLabel;
131  unsigned short* mMaxYTickLabelLen;
132  OOF_String* mIntTickLabelMask;
133  OOF_String* mRealTickLabelMask;
134 
135  unsigned int mRefCount;
136 };
137 
143 public:
146  static oofGraphSettings * settings();
147 
148 private:
149  static oofGraphSettings * sDefaultSettings;
150  static oofGraphDefaultSettings sDefaultSettingsFactory; // the Singleton
151 };
152 
153 
154 inline oofGraphSettings *
156 {
157  return sDefaultSettings;
158 }
159 
160 #endif
161 
Settings object for overriding behaviours of an instance of oofGraph.
Definition: oofSting.h:24
#define OOFGRAPH_EXPORT
Prefix for graph classes to enable optional DLL linking.
Definition: oof0.h:188
Attempts to define 'bool' regardless of compiler and whether it implements true bools.
Portable highly capable string class.
Definition: oofstr.h:101
static oofGraphSettings * settings()
Definition: oofSting.h:155
Singleton used to initialise oofGraphSettings.
Definition: oofSting.h:142
PositionState
Definition: oofGeos.h:45