from Graph.hpp:46
class Graph : public Container
{
public:
Graph();
virtual ~Graph();
void setup(int newWidth, int newHeight, uint16_t lineColor, uint16_t backgroundColor);
bool addValue(int x, int y)
{
return graphLine.addValue(x, y);
}
bool deleteValue(int x)
{
return graphLine.deleteValue(x);
}
void clear()
{
graphLine.clearGraph();
}
void setRange(int left, int right, int top, int bottom) ;
void setLineVisible(bool lineVisible);
void setDotsVisible(bool dotsVisible);
void setDotsBackgroundVisible(bool dotsBackgroundVisible);
void setAreaVisible(bool areaVisible);
void setDotShape(int startAngle, int angleStep, int lineWidth);
void setDotBackgroundShape(int startAngle, int angleStep, int lineWidth);
void setAlpha(uint8_t alpha);
uint8_t getAlpha();
static const int NUMBER_OF_POINTS = 40;
protected:
GraphLine graphLine;
GraphBelow graphArea;
GraphDots graphDots;
GraphDots graphDotsBackground;
GraphLine::GraphPoint graphBuffer[NUMBER_OF_POINTS];
PainterRGB565 graphLinePainter;
PainterRGB565 graphDotsPainter;
PainterRGB565 graphDotsBackgroundPainter;
PainterVerticalAlpha graphAreaPainter;
uint8_t myAlpha;
};