00001
00002 #ifndef task_mvlegend_h
00003 #define task_mvlegend_h
00004
00005
00006
00007 #include "sxy_graph.h"
00008 #include "sxy_task.h"
00009
00010
00011
00012 class XYLegend;
00013
00014
00015
00016
00017 class SXYTaskMoveLegend : public SXYTask {
00018
00019 private:
00020
00021 XYLegend* legend;
00022
00023 int shift_x;
00024 int shift_y;
00025 int ref_x;
00026 int ref_y;
00027 int is_moving;
00028
00029 protected:
00030
00031 void drawFence(void);
00032 void translateLegend(void);
00033
00034 public:
00035
00036 SXYTaskReturn mouseClick(SXYGraph* graph, int b, int x, int y, int sft, int ctr);
00037 SXYTaskReturn mouseUnclick(SXYGraph* graph, int b, int x, int y, int sft, int ctr);
00038 SXYTaskReturn mouseMotion(SXYGraph* graph, int x, int y, int sft, int ctr);
00039
00040 SXYTaskReturn mouseEnter(SXYGraph* graph);
00041 SXYTaskReturn mouseLeave(SXYGraph* graph);
00042
00043 SXYTaskMoveLegend(void);
00044 virtual ~SXYTaskMoveLegend();
00045 };
00046
00047 #endif
00048