00001 00002 #ifndef area_h 00003 #define area_h 00004 00005 // ======================================================================= 00006 00007 #include <xy.h> 00008 00009 #include "sxy_vector.h" 00010 #include "sxy_axis.h" 00011 00012 // ======================================================================= 00013 // 00014 //* Define uma área no chart a ser marcada como um box 00015 class SXYArea { 00016 00017 SXYAxis* x_axis; 00018 SXYAxis* y_axis; 00019 00020 XYCartesianArea* xy_area; 00021 00022 double xmin; 00023 double xmax; 00024 double ymin; 00025 double ymax; 00026 00027 public: 00028 00029 static const int CONTINUOUS; 00030 static const int DASHED; 00031 static const int DOTTED; 00032 00033 void setHorizontalLimits(double min, double max); 00034 void setVerticalLimits(double min, double max); 00035 void getHorizontalLimits(double& min, double& max); 00036 void getVerticalLimits(double& min, double& max); 00037 00038 void setTitleSize(int sz); 00039 int getTitleSize(void); 00040 00041 void setTitle(char* txt); 00042 char* getTitle(void); 00043 00044 long int getLineColor(void); 00045 void setLineColor(long int col); 00046 00047 int getLineWidth(void); 00048 void setLineWidth(int col); 00049 00050 int getForcedText(void); 00051 void setForcedText(int flg); 00052 00053 int getLineStyle(void); 00054 void setLineStyle(int col); 00055 00056 long int getBackgroundColor(void); 00057 void setBackgroundColor(long int col); 00058 00059 long int getTitleColor(void); 00060 void setTitleColor(long int col); 00061 00062 SXYArea(SXYAxis* x, SXYAxis* y); 00063 virtual ~SXYArea(); 00064 }; 00065 00066 #endif 00067