CategoryAxis Class Reference

#include <categoryaxis.h>

Inheritance diagram for CategoryAxis:

Inheritance graph
[legend]
Collaboration diagram for CategoryAxis:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CategoryAxis (AXIS_LOCATION location)
virtual void UpdateBounds ()

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 category names.

Member Function Documentation

virtual bool CategoryAxis::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 CategoryAxis::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 CategoryAxis::GetLabel ( size_t  step,
wxString &  label 
) [protected, virtual]

Returns label on step.

Parameters:
step step index
label output label

Implements LabelAxis.

virtual double CategoryAxis::GetValue ( size_t  step  )  [protected, virtual]

Returns value on step.

Parameters:
step step index
Returns:
value on step

Implements LabelAxis.

virtual bool CategoryAxis::IsEnd ( size_t  step  )  [protected, virtual]

Check whether step is last.

Parameters:
step step
Returns:
true if step is last

Implements LabelAxis.

virtual void CategoryAxis::UpdateBounds (  )  [virtual]

Performs axis bounds update after dataset/s change.

Implements Axis.


The documentation for this class was generated from the following file:

Generated on Mon Feb 15 21:32:23 2010 for wxFreeChart by  doxygen 1.5.8