10 #ifndef CATEGORYAXIS_H_ 11 #define CATEGORYAXIS_H_ 13 #include <wx/axis/labelaxis.h> 27 virtual void GetDataBounds(
double &minValue,
double &maxValue)
const;
35 virtual double GetValue(
size_t step);
37 virtual void GetLabel(
size_t step, wxString &label);
39 virtual bool IsEnd(
size_t step);
41 virtual wxSize GetLongestLabelExtent(wxDC &dc);
44 size_t m_categoryCount;
45 wxString m_longestCategory;
An axis for displaying category names.
Base class for axes for displaying data labels.
virtual void GetDataBounds(double &minValue, double &maxValue) const =0
Returns data bounds.
virtual void GetLabel(size_t step, wxString &label)=0
Returns label on step.
virtual bool UpdateBounds()=0
Performs axis bounds update after dataset/s change.
virtual bool IsEnd(size_t step)=0
Check whether step is last.
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).
virtual bool AcceptDataset(Dataset *dataset)=0
Checks whether dataset can be accepted by this axis.
virtual double GetValue(size_t step)=0
Returns value on step.