#include <compdateaxis.h>
Public Member Functions | |
CompDateAxis (AXIS_LOCATION location) | |
virtual void | Draw (wxDC &dc, wxRect rc) |
virtual void | DrawGridLines (wxDC &dc, wxRect rc) |
virtual wxCoord | GetExtent (wxDC &dc) |
virtual void | UpdateBounds () |
virtual void | GetDataBounds (double &minValue, double &maxValue) const |
virtual wxCoord | ToGraphics (wxDC &dc, int minCoord, int gRange, double value) |
virtual double | ToData (wxDC &dc, int minCoord, int gRange, wxCoord g) |
void | AddInterval (const wxDateSpan &interval) |
void | AddInterval (const wxTimeSpan &interval) |
void | SetSpanDraw (AreaDraw *spanDraw) |
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 bool | IsVisible (double value) |
virtual double | BoundValue (double value) |
Public Member Functions inherited from Observable< AxisObserver > | |
void | AddObserver (AxisObserver *_observer) |
void | RemoveObserver (AxisObserver *_observer) |
Protected Member Functions | |
virtual bool | AcceptDataset (Dataset *dataset) |
Protected Member Functions inherited from Axis | |
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 |
Composite date axis. Draws multiple date/time spans (like day, week, month, year), instead of just label as DateAxis does.
|
protectedvirtual |
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.
void CompDateAxis::AddInterval | ( | const wxDateSpan & | interval | ) |
Adds interval.
|
virtual |
|
virtual |
Draws grid lines for axis.
dc | device context |
rc | data area rectangle of plot |
Implements Axis.
|
virtual |
Returns data bounds.
minValue | output minimal data value |
maxValue | output maximal data value |
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.
|
inline |
Sets area draw to draw spans background. CompDateAxis takes ownership of area draw.
spanDraw | area draw to be set |
|
virtual |
Transforms coordinate from graphics space to data space.
dc | device context |
minCoord | minimal graphics space coordinate |
gRange | graphics space range |
value | value in data space |
Reimplemented from Axis.
|
virtual |
Transforms coordinate from data space to graphics space.
dc | device context |
minCoord | minimal graphics space coordinate |
gRange | graphics space range |
value | value in data space |
Reimplemented from Axis.
|
virtual |
Performs axis bounds update after dataset/s change.
Implements Axis.