Version: 0.6.0
GanttRenderer Class Reference

#include <ganttrenderer.h>

Inheritance diagram for GanttRenderer:
Collaboration diagram for GanttRenderer:

Public Member Functions

 GanttRenderer (int barWidth=5, int serieGap=2)
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 
void Draw (wxDC &dc, wxRect rc, DateAxis *horizAxis, CategoryAxis *vertAxis, GanttDataset *dataset)
 
void SetSerieDraw (size_t serie, AreaDraw *areaDraw)
 
AreaDrawGetSerieDraw (size_t serie)
 
void SetBarWidth (int barWidth)
 
- Public Member Functions inherited from Renderer
virtual void SetSerieColour (size_t serie, wxColour *color)
 
virtual wxColour GetSerieColour (size_t serie)
 
virtual void SetSerieSymbol (size_t serie, Symbol *symbol)
 
virtual SymbolGetSerieSymbol (size_t serie)
 
- Public Member Functions inherited from Observable< DrawObserver >
void AddObserver (DrawObserver *_observer)
 
void RemoveObserver (DrawObserver *_observer)
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Additional Inherited Members

- Public Types inherited from Observable< DrawObserver >
typedef DrawObserver Observer
 
- Public Attributes inherited from Observable< DrawObserver >
std::vector< DrawObserver * >
::iterator 
OIt
 
- Protected Member Functions inherited from DrawObject
 FIRE_WITH_THIS (NeedRedraw)
 
- Protected Attributes inherited from Observable< DrawObserver >
std::vector< DrawObserver * > observers
 

Detailed Description

Gantt data renderer.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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

Sets area draw object to draw specified serie.

Parameters
serieserie index
adarea draw for serie

Here is the call graph for this function:


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/gantt/ganttrenderer.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/gantt/ganttrenderer.cpp