mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Scenario: just zoom in in a graph Fix: - Do not truncate labels. - Label size is computed depending on available size and number of labels. - If labels cannot be displayed properly, just display the minimal and maximal labels!
26 lines
688 B
C++
26 lines
688 B
C++
#ifndef REGRESSION_GRAPH_VIEW_H
|
|
#define REGRESSION_GRAPH_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "store.h"
|
|
#include "../constant.h"
|
|
#include "../shared/curve_view.h"
|
|
|
|
namespace Regression {
|
|
|
|
class GraphView : public Shared::CurveView {
|
|
public:
|
|
GraphView(Store * store, Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView, Responder * controller);
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
private:
|
|
char * label(Axis axis, int index) const override;
|
|
Store * m_store;
|
|
char m_xLabels[k_maxNumberOfXLabels][k_labelBufferMaxSize];
|
|
char m_yLabels[k_maxNumberOfYLabels][k_labelBufferMaxSize];
|
|
Responder * m_controller;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|