#include <labelaxis.h>


Public Member Functions | |
| LabelAxis (AXIS_LOCATION location) | |
| void | SetTitle (const wxString &title) |
| const wxString & | GetTitle () |
| void | SetTitleLocation (int location) |
| int | GetTitleLocation () |
| void | SetTitleFont (wxFont &font) |
| const wxFont & | GetTitleFont () |
| void | SetTitleColour (wxColour &colour) |
| wxColour | GetTitleColour () |
| void | SetLabelPen (wxPen labelPen) |
| void | SetLabelTextColour (wxColour labelTextColour) |
| wxColour | GetLabelTextColour () |
| void | SetLabelTextFont (wxFont labelTextFont) |
| const wxFont & | GetLabelTextFont () |
| void | SetVerticalLabelText (bool verticalLabelText) |
| bool | GetVerticalLabelText () |
| void | SetMajorLabelSteps (size_t step) |
| void | SetLabelSkip (int blankLabels) |
| int | GetLabelSkip () |
| void | SetLabelColourer (LabelColourer *labelColourer) |
| LabelColourer * | GetLabelColourer () |
| void | SetAxisVisible (bool bVisible) |
| virtual void | Draw (wxDC &dc, wxRect rc) |
| virtual void | DrawGridLines (wxDC &dc, wxRect rc) |
| virtual wxCoord | GetExtent (wxDC &dc) |
Public Member Functions inherited from Axis | |
| Axis (AXIS_LOCATION location) | |
| AXIS_LOCATION | GetLocation () |
| bool | IsVertical () |
| bool | IsHorizontal () |
| void | SetMargins (wxCoord marginMin, wxCoord marginMax) |
| size_t | GetDatasetCount () |
| Dataset * | GetDataset (size_t index) |
| void | SetZoomPanMode () |
| void | SetWindowWidth (double winWidth) |
| double | GetWindowWidth () |
| void | SetWindowPosition (double winPos) |
| double | GetWindowPosition () |
| void | SetUseWindow (bool useWin) |
| void | SetWindow (double winPos, double winWidth) |
| bool | IntersectsWindow (double v0, double v1) |
| void | GetWindowBounds (double &winMin, double &winMax) |
| void | AddDataset (Dataset *dataset) |
| virtual void | GetDataBounds (double &minValue, double &maxValue) const =0 |
| virtual bool | IsVisible (double value) |
| virtual double | BoundValue (double value) |
| virtual wxCoord | ToGraphics (wxDC &dc, int minCoord, int gRange, double value) |
| virtual double | ToData (wxDC &dc, int minCoord, int gRange, wxCoord g) |
| virtual void | UpdateBounds ()=0 |
Public Member Functions inherited from Observable< AxisObserver > | |
| void | AddObserver (AxisObserver *_observer) |
| void | RemoveObserver (AxisObserver *_observer) |
Protected Member Functions | |
| virtual double | GetValue (size_t step)=0 |
| virtual void | GetLabel (size_t step, wxString &label)=0 |
| virtual bool | IsEnd (size_t step)=0 |
| virtual wxSize | GetLongestLabelExtent (wxDC &dc)=0 |
| virtual bool | HasLabels () |
Protected Member Functions inherited from Axis | |
| virtual bool | AcceptDataset (Dataset *dataset)=0 |
| FIRE_WITH_THIS (AxisChanged) | |
| FIRE_WITH_THIS (BoundsChanged) | |
Additional Inherited Members | |
Public Types inherited from Observable< AxisObserver > | |
| typedef AxisObserver | Observer |
Public Attributes inherited from Observable< AxisObserver > | |
|
std::vector< AxisObserver * > ::iterator | OIt |
Protected Attributes inherited from Axis | |
| DatasetArray | m_datasets |
| wxPen | m_gridLinesPen |
| wxCoord | m_marginMin |
| wxCoord | m_marginMax |
| double | m_winPos |
| double | m_winWidth |
| bool | m_useWin |
Protected Attributes inherited from Observable< AxisObserver > | |
| std::vector< AxisObserver * > | observers |
Base class for axes for displaying data labels.
|
virtual |
Performs axis drawing.
| dc | device context |
| rc | rectangle where to draw |
Implements Axis.

|
virtual |
Draws grid lines for axis.
| dc | device context |
| rc | data area rectangle of plot |
Implements Axis.

|
virtual |
Used to determine minimal size needed to draw axis contents, minimal width for vertical axes, minimal height for horizontal.
| dc | device context |
Implements Axis.

|
protectedpure virtual |
Returns label on step.
| step | step index |
| label | output label |
Implemented in NumberAxis, LogarithmicNumberAxis, DateAxis, CategoryAxis, and JulianDateAxis.
|
inline |
Returns label colour.
|
inline |
Returns label font.
|
inline |
Returns axis title.
|
inline |
Returns axis title colour.
|
inline |
Returns axis title font.
|
inline |
Returns axis title location.
|
protectedpure virtual |
Returns value on step.
| step | step index |
Implemented in NumberAxis, LogarithmicNumberAxis, DateAxis, and CategoryAxis.

|
inline |
Returns whether to draw labels text vertical.
|
protectedpure virtual |
Check whether step is last.
| step | step |
Implemented in NumberAxis, DateAxis, and CategoryAxis.

| void LabelAxis::SetAxisVisible | ( | bool | bVisible | ) |
Sets visibility of axis
| bVisible | - false if hidden |
|
inline |
Sets pen for label lines.
| labelPen | pen for label lines |
|
inline |
Sets colour for labels.
| labelColour | color for labels |
|
inline |
Sets font for labels text.
| labelFont | font for labels text |
|
inline |
Sets major label steps.
| step | The step size at which major label should be drawn |
|
inline |
Sets axis title.
| new | axis title |
|
inline |
Sets axis title colour.
| new | axis title colour |
|
inline |
Sets axis title font.
| axis | title font |
|
inline |
Sets axis title location.
| location | new location for axis title, acceptable values wxLEFT, wxCENTER, wxRIGHT for horizontal axes, wxTOP, wxCENTER, wxBOTTOM for vertical axes. |
|
inline |
Sets whether to draw labels text vertical.
| verticalLabelText | true to draw labels text vertical |