wxFreeChart
Public Member Functions | Protected Member Functions | List of all members
XYLineRenderer Class Reference

Renderer for drawing lines from xy datasets. More...

#include <xylinerenderer.h>

Inheritance diagram for XYLineRenderer:
Inheritance graph
[legend]
Collaboration diagram for XYLineRenderer:
Collaboration graph
[legend]

Public Member Functions

 XYLineRenderer (bool drawSymbols=false, bool drawLines=true, int defaultWidth=2, wxPenStyle defaultStyle=wxPENSTYLE_SOLID)
 Constructs new line renderer. More...
 
- Public Member Functions inherited from XYLineRendererBase
 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)
 
- Protected Member Functions inherited from XYLineRendererBase
virtual void DrawSymbols (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)
 

Additional Inherited Members

- Protected Attributes inherited from XYLineRendererBase
bool m_drawSymbols
 
bool m_drawLines
 

Detailed Description

Renderer for drawing lines from xy datasets.

Can also draw symbols at line points.

Definition at line 75 of file xylinerenderer.h.

Constructor & Destructor Documentation

XYLineRenderer::XYLineRenderer ( bool  drawSymbols = false,
bool  drawLines = true,
int  defaultWidth = 2,
wxPenStyle  defaultStyle = wxPENSTYLE_SOLID 
)

Constructs new line renderer.

Parameters
drawSymbolsspecifies whether to draw symbols at line points
drawLinesspecifies whether to draw lines
defaultWidthspecifies default width for lines
defaultStylespecifies default style for lines

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