wxFreeChart
Public Member Functions | List of all members
GanttRenderer Class Reference

Gantt data renderer. More...

#include <ganttrenderer.h>

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

Public Member Functions

 GanttRenderer (int barWidth=5, int serieGap=2)
 Constructs new gantt renderer. More...
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 Draws legend symbol. More...
 
void Draw (wxDC &dc, wxRect rc, DateAxis *horizAxis, CategoryAxis *vertAxis, GanttDataset *dataset)
 Drawn gantt dataset. More...
 
void SetSerieDraw (size_t serie, AreaDraw *areaDraw)
 Sets area draw object to draw specified serie. More...
 
AreaDrawGetSerieDraw (size_t serie)
 
void SetBarWidth (int barWidth)
 
- Public Member Functions inherited from Renderer
virtual void SetSerieColour (size_t serie, wxColour *color)
 Sets color for serie. More...
 
virtual wxColour GetSerieColour (size_t serie)
 Returns serie color. More...
 
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 ()
 

Detailed Description

Gantt data renderer.

Definition at line 20 of file ganttrenderer.h.

Constructor & Destructor Documentation

GanttRenderer::GanttRenderer ( int  barWidth = 5,
int  serieGap = 2 
)

Constructs new gantt renderer.

Parameters
barWidthbar width
serieGapdistance between series

Member Function Documentation

void GanttRenderer::Draw ( wxDC &  dc,
wxRect  rc,
DateAxis horizAxis,
CategoryAxis vertAxis,
GanttDataset dataset 
)

Drawn gantt dataset.

Parameters
dcdevice context
rcrectangle where to draw
horizAxishorizontal axis
vertAxisvertical axis
datasetdataset to draw
virtual void GanttRenderer::DrawLegendSymbol ( wxDC &  dc,
wxRect  rcSymbol,
size_t  serie 
)
virtual

Draws legend symbol.

Parameters
dcdevice context
rcSymbolrectangle where to draw
serieserie index

Reimplemented from Renderer.

void GanttRenderer::SetSerieDraw ( size_t  serie,
AreaDraw areaDraw 
)

Sets area draw object to draw specified serie.

Parameters
serieserie index
adarea draw for serie

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