StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange

Dependencies:   EthernetNetIf mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Axis.h Source File

Axis.h

00001 /**
00002  * GoogleChart API interface driver. (Version 0.0.1)
00003  *
00004  * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
00005  * http://shinta.main.jp/
00006  */
00007 
00008 #ifndef _AXIS_H_
00009 #define _AXIS_H_
00010 
00011 class Axis {
00012 public:
00013     typedef enum {
00014         Bottom,
00015         Left,
00016         Right,
00017         Top
00018     } Type;
00019     
00020     Axis(int number, Type type = Bottom);
00021     ~Axis();
00022     
00023     int getNumber() const;
00024     void setType(Type type);
00025     Type getType() const;
00026     void setRangeStart(int rangeStart);
00027     int getRangeStart() const;
00028     void setRangeEnd(int rangeEnd);
00029     int getRangeEnd() const;
00030     
00031 private:
00032 
00033     const int number;
00034     Type type;
00035     int rangeStart;
00036     int rangeEnd;
00037 };
00038 
00039 #endif