wxFreeChart
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XYLineRendererBase Class Referenceabstract
Inheritance diagram for XYLineRendererBase:
Inheritance graph
[legend]
Collaboration diagram for XYLineRendererBase:
Collaboration graph
[legend]

Public Member Functions

 XYLineRendererBase (bool drawSymbols, bool drawLines, int defaultWidth=2, wxPenStyle defaultStyle=wxPENSTYLE_SOLID)
 
virtual void SetSerieColour (size_t serie, wxColour *colour)
 Sets serie color. More...
 
virtual wxColour GetSerieColour (size_t serie)
 Returns serie color. More...
 
void SetSeriePen (size_t serie, wxPen *pen)
 Sets pen to draw serie lines. More...
 
wxPen * GetSeriePen (size_t serie)
 Returns pen, used to draw specified serie lines. More...
 
virtual void Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)
 Draws dataset. More...
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 Draws legend symbol. More...
 
- Public Member Functions inherited from Renderer
virtual void SetSerieSymbol (size_t serie, Symbol *symbol)
 Sets symbol for serie. More...
 
virtual SymbolGetSerieSymbol (size_t serie)
 returns symbol for serie. More...
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Protected Member Functions

virtual void DrawLines (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)=0
 
virtual void DrawSymbols (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)
 

Protected Attributes

bool m_drawSymbols
 
bool m_drawLines
 

Detailed Description

Definition at line 16 of file xylinerenderer.h.

Member Function Documentation

virtual void XYLineRendererBase::Draw ( wxDC &  dc,
wxRect  rc,
Axis horizAxis,
Axis vertAxis,
XYDataset dataset 
)
virtual

Draws dataset.

Parameters
dcdevice context
rcrectangle where to draw
horizAxishorizontal axis
vertAxisvertical axis
datasetdataset to be drawn

Implements XYRenderer.

virtual void XYLineRendererBase::DrawLegendSymbol ( wxDC &  dc,
wxRect  rcSymbol,
size_t  serie 
)
virtual

Draws legend symbol.

Parameters
dcdevice context
rcSymbolrectangle where to draw
serieserie index

Reimplemented from Renderer.

virtual wxColour XYLineRendererBase::GetSerieColour ( size_t  serie)
virtual

Returns serie color.

Parameters
serieserie index
Returns
serie color

Reimplemented from Renderer.

wxPen* XYLineRendererBase::GetSeriePen ( size_t  serie)

Returns pen, used to draw specified serie lines.

Parameters
serieserie index
Returns
pen
virtual void XYLineRendererBase::SetSerieColour ( size_t  serie,
wxColour *  colour 
)
virtual

Sets serie color.

Parameters
serieserie index
colorcolor for serie

Reimplemented from Renderer.

void XYLineRendererBase::SetSeriePen ( size_t  serie,
wxPen *  pen 
)

Sets pen to draw serie lines.

Parameters
serieserie index
penpen for serie

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