Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

sxy_task.cpp

Go to the documentation of this file.
00001 // =======================================================================
00002 
00003 char *task_cpp = "$Id: sxy_task.cpp,v 1.3 2002/12/06 20:15:25 clinio Exp $";
00004 
00005 // =======================================================================
00006 
00007 #include <assert.h>
00008 #include <xy.h>
00009 
00010 #include "sxy_task.h"
00011 #include "sxy_chart.h"
00012 #include "sxy_graph.h"
00013 
00014 #include "sxy_task_mvlegend.h"
00015 #include "sxy_task_adjaxis.h"
00016 #include "sxy_task_edtext.h"
00017 #include "sxy_task_zoomin.h"
00018 #include "sxy_task_chcolors.h"
00019 #include "sxy_task_mvpoint.h"
00020 
00021 
00022 // =======================================================================
00023 
00025 static SXYTaskZoomIn zoom_in_task;
00026 
00029 static SXYTaskMoveLegend move_legend_task;
00030 
00033 static SXYTaskMovePoint move_point_task;
00034 
00036 static SXYTaskEditText edit_text_task;
00037 
00039 static SXYTaskAdjustAxis adj_axis_task;
00040 
00043 static SXYTaskChangeChartColors change_colors_task;
00044 
00045 SXYTask* SXYTask::DEFAULT_MOVE_POINT_TASK = &move_point_task;
00046 SXYTask* SXYTask::DEFAULT_MOVE_LEGEND_TASK = &move_legend_task;
00047 SXYTask* SXYTask::DEFAULT_ADJUST_AXIS_TASK = &adj_axis_task;
00048 SXYTask* SXYTask::DEFAULT_EDIT_TEXT_TASK = &edit_text_task;
00049 SXYTask* SXYTask::DEFAULT_ZOOM_IN_TASK = &zoom_in_task;
00050 SXYTask* SXYTask::DEFAULT_CHANGE_COLORS_TASK = &change_colors_task;
00051 
00052 // =======================================================================
00053 
00054 long int SXYTask::getXorColor(void) {
00055    return 0x00aa0088;
00056 }
00057 
00058 // ......................................................................
00059 
00060 SXYTaskReturn SXYTask::mouseClick(SXYGraph* graph, int b, int x, int y, 
00061 int sft, int ctr) {
00062    return CALLBACK_TREATED;
00063 }
00064 
00065 // ......................................................................
00066 //
00067 SXYTaskReturn SXYTask::mouseUnclick(SXYGraph* graph, int b, int x, int y, 
00068 int sft, int ctr) {
00069    return CALLBACK_TREATED;
00070 }
00071 
00072 // ......................................................................
00073 
00074 SXYTaskReturn SXYTask::mouseMotion(SXYGraph* graph, int x, int y, 
00075 int sft, int ctr) {
00076    return CALLBACK_TREATED;
00077 }
00078 
00079 // ......................................................................
00080 
00081 SXYTaskReturn SXYTask::mouseEnter(SXYGraph* graph) {
00082    return CALLBACK_TREATED;
00083 }
00084 
00085 // ......................................................................
00086 
00087 SXYTaskReturn SXYTask::mouseLeave(SXYGraph* graph) {
00088    return CALLBACK_TREATED;
00089 }
00090 
00091 // ......................................................................
00092 
00093 SXYTask::SXYTask(void) {
00094 }
00095 
00096 // ......................................................................
00097 
00098 SXYTask::~SXYTask() {
00099 };
00100 

SXY
Tecgraf / PUC-Rio - Computer Graphics Technology Group