00001
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00021
00030
00031
00032
00033
00034 #ifndef ANAPHE_AIDA_AXISSTYLE_H
00035 #define ANAPHE_AIDA_AXISSTYLE_H
00036
00037
00038 #include "AIDA/IAxisStyle.h"
00039
00040
00041
00042 namespace Anaphe {
00043
00044 class AxisStyle;
00045 }
00046
00047
00048
00049 namespace Anaphe {
00050 namespace AIDA_Plotter_Grace {
00051
00052
00053
00054
00059 class AIDA_AxisStyle : public AIDA::IAxisStyle
00060 {
00061 public:
00062 AIDA_AxisStyle();
00063 AIDA_AxisStyle(AxisStyle*, bool ownsership = true);
00064 virtual ~AIDA_AxisStyle();
00065
00066 private:
00067 AIDA_AxisStyle(const AIDA_AxisStyle&);
00068 AIDA_AxisStyle& operator=(const AIDA_AxisStyle&);
00069
00070 public:
00071 virtual void reset();
00072 virtual bool setParameter(const std::string& paramName, const std::string& options);
00073 virtual std::vector<std::string> availableParameters() const;
00074 virtual std::string parameterValue(const std::string& paramName) const;
00075 virtual std::vector<std::string> availableParameterOptions(const std::string& paramName) const;
00076 virtual AIDA::ILineStyle& lineStyle();
00077 virtual AIDA::ITextStyle& tickLabelStyle();
00078 virtual AIDA::ITextStyle& labelStyle();
00079 virtual bool setlineStyle(const AIDA::ILineStyle& lineStyle);
00080 virtual bool setTickLabelStyle(const AIDA::ITextStyle& tickLabelStyle);
00081 virtual bool setLabelStyle(const AIDA::ITextStyle& labelStyle);
00082 virtual void setLabel(const std::string& label);
00083
00084 AxisStyle* theRep();
00085 void setRep(AxisStyle&, bool ownership);
00086
00087 private:
00088 void crisis() const;
00089
00090 private:
00091 AxisStyle* rep;
00092 bool ownRep;
00093
00094 };
00095
00096
00097
00098 }
00099 }
00100
00101
00102 #endif // ANAPHE_AIDA_AXISSTYLE_H
00103