StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange
Dependencies: EthernetNetIf mbed
Diff: GoogleChart/Axis.h
- Revision:
- 0:77d8b45a8f42
diff -r 000000000000 -r 77d8b45a8f42 GoogleChart/Axis.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GoogleChart/Axis.h Wed Aug 11 01:53:35 2010 +0000 @@ -0,0 +1,39 @@ +/** + * GoogleChart API interface driver. (Version 0.0.1) + * + * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) + * http://shinta.main.jp/ + */ + +#ifndef _AXIS_H_ +#define _AXIS_H_ + +class Axis { +public: + typedef enum { + Bottom, + Left, + Right, + Top + } Type; + + Axis(int number, Type type = Bottom); + ~Axis(); + + int getNumber() const; + void setType(Type type); + Type getType() const; + void setRangeStart(int rangeStart); + int getRangeStart() const; + void setRangeEnd(int rangeEnd); + int getRangeEnd() const; + +private: + + const int number; + Type type; + int rangeStart; + int rangeEnd; +}; + +#endif