00001
00002
00003
00004
00005
00006 #ifndef __XYCARTESIANBARMASK_H
00007 #define __XYCARTESIANBARMASK_H
00008
00009 #include "xymca.h"
00010
00011
00012
00013
00014 class XYCartesianBarMask : public XYCartesianMask
00015 {
00016 public:
00017
00018
00019
00020 enum HatchStyle {
00021 horizontal,
00022 vertical,
00023 fdiagonal,
00024 bdiagonal,
00025 cross,
00026 diagcross
00027 };
00028
00029
00030
00031 XYCartesianBarMask (
00032 XYText* name,
00033 XYSeries* series,
00034 const XYAxis* x_axis,
00035 const XYAxis* y_axis,
00036 long color,
00037 InteriorStyle style,
00038 HatchStyle hstyle,
00039 xybool border,
00040 long bcolor,
00041 double displacement,
00042 double width,
00043 xybool visible = xytrue);
00044
00045
00046 XYCartesianBarMask (
00047 XYSeries* series,
00048 const XYAxis* x_axis,
00049 const XYAxis* y_axis,
00050 long color,
00051 InteriorStyle style,
00052 HatchStyle hstyle,
00053 xybool border,
00054 long bcolor,
00055 double displacement,
00056 double width,
00057 xybool visible = xytrue);
00058
00059
00060 virtual ~XYCartesianBarMask (void) {};
00061
00062
00063
00064 virtual void style (XYMask::InteriorStyle s);
00065
00066 virtual int style (void) const;
00067
00068
00069 virtual void hstyle (HatchStyle hs);
00070
00071 virtual int hstyle (void) const;
00072
00073
00074 virtual void bcolor (long bc);
00075
00076 virtual long bcolor (void) const;
00077
00078
00079 virtual void displacement (double d);
00080
00081 virtual double displacement (void) const;
00082
00083
00084 virtual void width (double w);
00085
00086 virtual double width (void) const;
00087
00088
00089 virtual void border (xybool b);
00090
00091 virtual xybool border (void) const;
00092
00093
00094
00095 virtual xybool pick (int px, int py);
00096
00097
00098 virtual xybool fence (int x0, int y0, int x1, int y1);
00099
00100
00101
00102 virtual void drawIcon (int xmin, int ymin, int xmax, int ymax) const;
00103
00104
00105 virtual void draw (void);
00106
00107 virtual void draw (int xmin, int ymin, int xmax, int ymax) const;
00108
00109
00110
00111 virtual void boundingBox (int& bxmin, int& bymin, int& bxmax, int& bymax) const;
00112
00113 private:
00114
00115 InteriorStyle _style;
00116 HatchStyle _hstyle;
00117 xybool _border;
00118 long _bcolor;
00119 double _displacement;
00120 double _width;
00121 };
00122
00123 #endif
00124