DateAxis Class Reference
#include <dateaxis.h>
List of all members.
|
Public Member Functions |
| DateAxis (AXIS_LOCATION location) |
virtual void | UpdateBounds () |
void | SetDateFormat (const wxString &dateFormat) |
Protected Member Functions |
virtual bool | AcceptDataset (Dataset *dataset) |
virtual double | GetValue (size_t step) |
virtual void | GetLabel (size_t step, wxString &label) |
virtual bool | IsEnd (size_t step) |
virtual wxSize | GetLongestLabelExtent (wxDC &dc) |
virtual void | GetDataBounds (double &minValue, double &maxValue) |
Detailed Description
An axis for displaying date/time values. TODO:
- works with only one dataset.
Member Function Documentation
virtual bool DateAxis::AcceptDataset |
( |
Dataset * |
dataset |
) |
[protected, virtual] |
Checks whether dataset can be accepted by this axis. Must be implemented by derivative classes. XXX: maybe remove this method later.
- Parameters:
-
| dataset | dataset to be checked |
- Returns:
- true - if dataset can be accepted, false overwise
Implements Axis.
virtual void DateAxis::GetDataBounds |
( |
double & |
minValue, |
|
|
double & |
maxValue | |
|
) |
| | [protected, virtual] |
Returns data bounds.
- Parameters:
-
| minValue | output minimal data value |
| maxValue | output maximal data value |
Implements Axis.
virtual void DateAxis::GetLabel |
( |
size_t |
step, |
|
|
wxString & |
label | |
|
) |
| | [protected, virtual] |
Returns label on step.
- Parameters:
-
| step | step index |
| label | output label |
Implements LabelAxis.
virtual double DateAxis::GetValue |
( |
size_t |
step |
) |
[protected, virtual] |
Returns value on step.
- Parameters:
-
- Returns:
- value on step
Implements LabelAxis.
virtual bool DateAxis::IsEnd |
( |
size_t |
step |
) |
[protected, virtual] |
Check whether step is last.
- Parameters:
-
- Returns:
- true if step is last
Implements LabelAxis.
void DateAxis::SetDateFormat |
( |
const wxString & |
dateFormat |
) |
[inline] |
Sets date format for date labels.
- Parameters:
-
| dateFormat | date format in strftime style |
virtual void DateAxis::UpdateBounds |
( |
|
) |
[virtual] |
Performs axis bounds update after dataset/s change.
Implements Axis.
The documentation for this class was generated from the following file: