Version: 0.6.0
XYHistoRenderer Class Reference

#include <xyhistorenderer.h>

Inheritance diagram for XYHistoRenderer:
Collaboration diagram for XYHistoRenderer:

Public Member Functions

 XYHistoRenderer (int barWidth=10, bool vertical=true)
 
virtual void Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)
 
void SetBarArea (size_t serie, AreaDraw *barArea)
 
AreaDrawGetBarArea (size_t serie)
 
virtual void NeedRedraw (DrawObject *obj)
 
- 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)
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, 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

Renderer for displaying XY data as histograms.

Constructor & Destructor Documentation

XYHistoRenderer::XYHistoRenderer ( int  barWidth = 10,
bool  vertical = true 
)

Constructs new XYHistoRenderer.

Parameters
barWidthwidth to histogram bars
verticaltrue to draw vertical bars, false - to horizontal

Member Function Documentation

void XYHistoRenderer::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.

Here is the call graph for this function:

AreaDraw * XYHistoRenderer::GetBarArea ( size_t  serie)

Returns area draw for specified serie.

Parameters
serieserie index
Returns
area draw for specified serie

Here is the call graph for this function:

void XYHistoRenderer::NeedRedraw ( DrawObject obj)
virtual

Called when object is need to be redrawed.

Parameters
objobject that need to be redrawed

Implements DrawObserver.

void XYHistoRenderer::SetBarArea ( size_t  serie,
AreaDraw barArea 
)

Set area fill to draw specified serie. XYHistoRenderer takes ownership of barArea.

Parameters
serieserie index
barAreaarea background object to draw bars

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/xy/xyhistorenderer.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/xy/xyhistorenderer.cpp