home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xtimesl.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  1KB  |  32 lines

  1. #ifndef __OOL_XTIMESL_H__
  2. #define __OOL_XTIMESL_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XTimeSlice                            */
  8. /*                       derived from: XChart                                */
  9. /*                        last update: 3/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "XChart.h"
  14. #include "XLine.h"
  15.  
  16. class _export_ XTimeSlice: public XChart
  17. {
  18.       XLine ** lines;
  19.       double maxValue;
  20.       XColor color;
  21.       LONG width;
  22.    public:
  23.       XTimeSlice( const XWindow * w, const XRect& rec=XRect(), const LONG id=0, const LONG st = 0, const char* t = NULL);
  24.       void Calculate( void );
  25.       void SetLineWidth(const LONG w);
  26.       void SetLineColor( const XColor * col);
  27.       void SetMaxValue( const double val) { maxValue = val; }
  28.       void SetItemCount( const USHORT count );
  29. };
  30.  
  31. #endif
  32.