00001
00002
00003
00004
00005
00006 #ifndef __XYCARTESIANLINEMASK_H
00007 #define __XYCARTESIANLINEMASK_H
00008
00009 #include "xymca.h"
00010
00011
00012
00013
00014 class XYCartesianLineMask : public XYCartesianMask
00015 {
00016 public:
00017
00018
00019
00020 XYCartesianLineMask (
00021 XYText* name,
00022 XYSeries* series,
00023 const XYAxis* x_axis,
00024 const XYAxis* y_axis,
00025 long color,
00026 int width,
00027 LineStyle style,
00028 xybool visible = xytrue);
00029
00030
00031 XYCartesianLineMask (
00032 XYSeries* series,
00033 const XYAxis* x_axis,
00034 const XYAxis* y_axis,
00035 long color,
00036 int width,
00037 LineStyle style,
00038 xybool visible = xytrue);
00039
00040
00041 virtual ~XYCartesianLineMask (void) {};
00042
00043
00044
00045 virtual void width (int w);
00046
00047 virtual int width (void) const;
00048
00049
00050 virtual void style (XYMask::LineStyle s);
00051
00052 virtual int style (void) const;
00053
00054
00055
00056 virtual xybool pick (int px, int py);
00057
00058
00059 virtual xybool fence (int x0, int y0, int x1, int y1);
00060
00061
00062
00063 virtual void drawIcon (int xmin, int ymin, int xmax, int ymax) const;
00064
00065
00066 virtual void draw (void);
00067
00068 virtual void draw (int xmin, int ymin, int xmax, int ymax) const;
00069
00070
00071
00072 virtual void boundingBox (int& bxmin, int& bymin, int& bxmax, int& bymax) const;
00073
00074 private:
00075
00076 int _width;
00077 LineStyle _style;
00078 };
00079
00080 #endif
00081