AxisShare Class Reference

#include <axis.h>

Inheritance diagram for AxisShare:

Inheritance graph
[legend]
Collaboration diagram for AxisShare:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AxisShare (Axis *axis)
void SetShareVisible (bool shareVisible)
virtual void GetDataBounds (double &minValue, double &maxValue)
virtual wxCoord GetExtent (wxDC &dc)
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 ()
virtual void Draw (wxDC &dc, wxRect rc)
virtual void DrawGridLines (wxDC &dc, wxRect rcData)

Protected Member Functions

virtual bool AcceptDataset (Dataset *dataset)


Detailed Description

Used to combine axes. Shares axis between plots.

Member Function Documentation

virtual bool AxisShare::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.

Referenced by Axis::AddDataset().

virtual double AxisShare::BoundValue ( double  value  )  [virtual]

Returns nearest boundary value.

Parameters:
value out of bounds value, for which will be returned boundary value
Returns:
nearest boundary value

Reimplemented from Axis.

virtual void AxisShare::Draw ( wxDC &  dc,
wxRect  rc 
) [virtual]

Performs axis drawing.

Parameters:
dc device context
rc rectangle where to draw

Implements Axis.

virtual void AxisShare::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 AxisShare::GetDataBounds ( double &  minValue,
double &  maxValue 
) [virtual]

Returns data bounds.

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

Implements Axis.

Referenced by Axis::GetWindowBounds().

virtual wxCoord AxisShare::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.

virtual bool AxisShare::IsVisible ( double  value  )  [virtual]

Checks whether data value is visible.

Parameters:
value value in data space
Returns:
true if data value is visible

Reimplemented from Axis.

void AxisShare::SetShareVisible ( bool  shareVisible  ) 

Sets axis share visible or not. Note: by default axis share is invisible.

Parameters:
shareVisible true to set share visible

virtual double AxisShare::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 AxisShare::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 AxisShare::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