13 #include <wx/axis/axis.h>
21 virtual wxColor GetColour(
int step) = 0;
61 if (m_titleLocation != location) {
62 m_titleLocation = location;
73 return m_titleLocation;
101 if (m_titleColour != colour) {
102 m_titleColour = colour;
113 return m_titleColour;
122 m_labelPen = labelPen;
132 m_labelTextColour = labelTextColour;
142 return m_labelTextColour;
151 m_labelTextFont = labelTextFont;
161 return m_labelTextFont;
170 if (m_verticalLabelText != verticalLabelText) {
171 m_verticalLabelText = verticalLabelText;
182 return m_verticalLabelText;
191 if (m_majorLabelStep != step) {
192 m_majorLabelStep = step;
197 void SetLabelSkip(
int blankLabels);
203 wxREPLACE(m_labelColourer, labelColourer);
208 return m_labelColourer;
215 void SetAxisVisible(
bool bVisible);
220 virtual void Draw(wxDC &dc, wxRect rc);
236 virtual double GetValue(
size_t step) = 0;
243 virtual void GetLabel(
size_t step, wxString &label) = 0;
250 virtual bool IsEnd(
size_t step) = 0;
252 virtual wxSize GetLongestLabelExtent(wxDC &dc) = 0;
254 virtual bool HasLabels();
257 void DrawLabels(wxDC &dc, wxRect rc);
259 void DrawLabel(wxDC &dc, wxRect rc,
const wxString &label,
double value,
bool isMajorLabel);
261 void DrawBorderLine(wxDC &dc, wxRect rc);
263 wxCoord m_labelLineSize;
267 wxFont m_labelTextFont;
268 wxColour m_labelTextColour;
270 bool m_verticalLabelText;
271 size_t m_majorLabelStep;
276 wxColour m_titleColour;
void SetLabelTextColour(wxColour labelTextColour)
Definition: labelaxis.h:130
virtual void DrawGridLines(wxDC &dc, wxRect rcData)=0
int GetTitleLocation()
Definition: labelaxis.h:71
Definition: labelaxis.h:27
void SetTitle(const wxString &title)
Definition: labelaxis.h:38
wxColour GetTitleColour()
Definition: labelaxis.h:111
const wxString & GetTitle()
Definition: labelaxis.h:48
Definition: labelaxis.h:18
void SetTitleColour(wxColour &colour)
Definition: labelaxis.h:99
void SetLabelPen(wxPen labelPen)
Definition: labelaxis.h:120
wxColour GetLabelTextColour()
Definition: labelaxis.h:140
void SetVerticalLabelText(bool verticalLabelText)
Definition: labelaxis.h:168
const wxFont & GetTitleFont()
Definition: labelaxis.h:90
const wxFont & GetLabelTextFont()
Definition: labelaxis.h:159
void SetMajorLabelSteps(size_t step)
Definition: labelaxis.h:189
bool GetVerticalLabelText()
Definition: labelaxis.h:180
virtual void Draw(wxDC &dc, wxRect rc)=0
void SetTitleFont(wxFont &font)
Definition: labelaxis.h:80
void SetLabelTextFont(wxFont labelTextFont)
Definition: labelaxis.h:149
void SetTitleLocation(int location)
Definition: labelaxis.h:59
virtual wxCoord GetExtent(wxDC &dc)=0