#include <numberaxis.h>
Public Member Functions | |
NumberAxis (AXIS_LOCATION location) | |
virtual void | UpdateBounds () |
void | SetTickFormat (const wxString &tickFormat) |
void | SetLabelCount (size_t labelCount) |
void | IntegerValues (bool intValues=true) |
void | SetFixedBounds (double minValue, double maxValue) |
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 bool | HasLabels () |
virtual wxSize | GetLongestLabelExtent (wxDC &dc) |
virtual void | GetDataBounds (double &minValue, double &maxValue) |
size_t | GetLabelCount () const |
virtual bool NumberAxis::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.
dataset | dataset to be checked |
Implements Axis.
virtual void NumberAxis::GetDataBounds | ( | double & | minValue, | |
double & | maxValue | |||
) | [protected, virtual] |
Returns data bounds.
minValue | output minimal data value | |
maxValue | output maximal data value |
Implements Axis.
virtual void NumberAxis::GetLabel | ( | size_t | step, | |
wxString & | label | |||
) | [protected, virtual] |
Returns label on step.
step | step index | |
label | output label |
Implements LabelAxis.
Reimplemented in LogarithmicNumberAxis.
virtual double NumberAxis::GetValue | ( | size_t | step | ) | [protected, virtual] |
Returns value on step.
step | step index |
Implements LabelAxis.
Reimplemented in LogarithmicNumberAxis.
void NumberAxis::IntegerValues | ( | bool | intValues = true |
) | [inline] |
Set whether to use integer values instead of doubles.
intValues | if true than use integer values, false - double values |
virtual bool NumberAxis::IsEnd | ( | size_t | step | ) | [protected, virtual] |
Check whether step is last.
step | step |
Implements LabelAxis.
void NumberAxis::SetFixedBounds | ( | double | minValue, | |
double | maxValue | |||
) |
Make data bounds fixed.
minValue | minimal data value | |
maxValue | maximal data value |
void NumberAxis::SetLabelCount | ( | size_t | labelCount | ) | [inline] |
Sets count of labels.
labelCount | count of labels |
void NumberAxis::SetTickFormat | ( | const wxString & | tickFormat | ) | [inline] |
Sets format for tick marks.
tickFormat | tick format |
virtual void NumberAxis::UpdateBounds | ( | ) | [virtual] |
Performs axis bounds update after dataset/s change.
Implements Axis.