13 #include <wx/axis/labelaxis.h> 33 m_tickFormat = tickFormat;
37 void SetLabelCount(
size_t labelCount) {}
45 if (m_intValues != intValues)
47 m_intValues = intValues;
60 if (m_zeroOrigin != zeroOrigin)
61 m_zeroOrigin = zeroOrigin;
73 if (m_extraMajorInterval != force)
74 m_extraMajorInterval = force;
81 double GetMultiplier()
const;
87 void SetMultiplier(
double multiplier);
94 void SetFixedBounds(
double minValue,
double maxValue);
101 virtual void GetDataBounds(
double &minValue,
double &maxValue)
const;
107 size_t GetLabelCount()
const;
119 double CalcNiceInterval(
double value,
bool round =
false);
121 void UpdateMajorIntervalValues();
126 virtual double GetValue(
size_t step);
128 virtual void GetLabel(
size_t step, wxString &label);
130 virtual bool IsEnd(
size_t step);
132 virtual bool HasLabels();
134 virtual wxSize GetLongestLabelExtent(wxDC &dc);
141 double m_labelInterval;
146 wxString m_tickFormat;
149 bool m_extraMajorInterval;
wxDEPRECATED_MSG("Use SetMinorIntervalCount instead.") void SetMajorLabelSteps(size_t step)
Sets major label steps.
void ForceExtraMajorInterval(bool force=true)
Forces an extra tick to be drawn at the top of vertical axis if the maximum value is the same as the ...
Base class for axes for displaying data labels.
void SetTickFormat(const wxString &tickFormat)
Sets format for tick marks.
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.
void IntegerValues(bool intValues=true)
Set whether to use integer values instead of doubles.
virtual bool IsEnd(size_t step)=0
Check whether step is last.
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).
An axis for displaying and scaling numerical data.
void ZeroOrigin(bool zeroOrigin=true)
Set whether the axis origin starts at zero.
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.