CompDateAxis Class Reference

#include <compdateaxis.h>

Inheritance diagram for CompDateAxis:

Inheritance graph
[legend]
Collaboration diagram for CompDateAxis:

Collaboration graph
[legend]

List of all members.

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)
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)

Protected Member Functions

virtual bool AcceptDataset (Dataset *dataset)


Detailed Description

Composite date axis. Draws multiple date/time spans (like day, week, month, year), instead of just label as DateAxis does.

Member Function Documentation

virtual bool CompDateAxis::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 CompDateAxis::Draw ( wxDC &  dc,
wxRect  rc 
) [virtual]

Performs axis drawing.

Parameters:
dc device context
rc rectangle where to draw

Implements Axis.

virtual void CompDateAxis::DrawGridLines ( wxDC &  dc,
wxRect  rcData 
) [virtual]

Draws grid lines for axis.

Parameters:
dc device context
rc data area rectangle of plot

Implements Axis.

virtual void CompDateAxis::GetDataBounds ( double &  minValue,
double &  maxValue 
) [virtual]

Returns data bounds.

Parameters:
minValue output minimal data value
maxValue output maximal data value

Implements Axis.

virtual wxCoord CompDateAxis::GetExtent ( wxDC &  dc  )  [virtual]

Used to determine minimal size needed to draw axis contents, minimal width for vertical axes, minimal height for horizontal.

Parameters:
dc device context
Returns:
extent

Implements Axis.

void CompDateAxis::SetSpanDraw ( AreaDraw spanDraw  )  [inline]

Sets area draw to draw spans background. CompDateAxis takes ownership of area draw.

Parameters:
spanDraw area draw to be set

virtual double CompDateAxis::ToData ( wxDC &  dc,
int  minCoord,
int  gRange,
wxCoord  g 
) [virtual]

Transforms coordinate from graphics space to data space.

Parameters:
dc device context
minCoord minimal graphics space coordinate
gRange graphics space range
value value in data space
Returns:
coordinate in data space

Reimplemented from Axis.

virtual wxCoord CompDateAxis::ToGraphics ( wxDC &  dc,
int  minCoord,
int  gRange,
double  value 
) [virtual]

Transforms coordinate from data space to graphics space.

Parameters:
dc device context
minCoord minimal graphics space coordinate
gRange graphics space range
value value in data space
Returns:
value in graphics space

Reimplemented from Axis.

virtual void CompDateAxis::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:24 2010 for wxFreeChart by  doxygen 1.5.8