Version: 0.6.0
FillAreaDraw Class Reference

#include <areadraw.h>

Inheritance diagram for FillAreaDraw:
Collaboration diagram for FillAreaDraw:

Public Member Functions

 FillAreaDraw (wxPen borderPen=(wxPen)*wxBLACK_PEN, wxBrush fillBrush=(wxBrush)*wxWHITE_BRUSH)
 
 FillAreaDraw (wxColour borderColour, wxColour fillColour)
 
virtual void Draw (wxDC &dc, wxRect rc)
 
const wxPen & GetBorderPen ()
 
void SetBorderPen (wxPen borderPen)
 
const wxBrush & GetFillBrush ()
 
void SetFillBrush (wxBrush fillBrush)
 
- Public Member Functions inherited from Observable< DrawObserver >
void AddObserver (DrawObserver *_observer)
 
void RemoveObserver (DrawObserver *_observer)
 

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

Fills area with specified brush and draw outline of area with specified pen.

Constructor & Destructor Documentation

FillAreaDraw::FillAreaDraw ( wxPen  borderPen = (wxPen) *wxBLACK_PEN,
wxBrush  fillBrush = (wxBrush) *wxWHITE_BRUSH 
)

Constructs new fill area draw.

Parameters
borderPenpen to draw area border
fillBrushbrush to fill area

Member Function Documentation

void FillAreaDraw::Draw ( wxDC &  dc,
wxRect  rc 
)
virtual

Draw area background.

Parameters
dcdevice context
rcrectangle of area to draw

Implements AreaDraw.

const wxPen& FillAreaDraw::GetBorderPen ( )
inline

Returns border pen.

Returns
border pen
const wxBrush& FillAreaDraw::GetFillBrush ( )
inline

Returns fill brush.

Returns
fill brush
void FillAreaDraw::SetBorderPen ( wxPen  borderPen)
inline

Sets border pen.

Parameters
borderPenborder pen
void FillAreaDraw::SetFillBrush ( wxBrush  fillBrush)
inline

Sets fill brush.

Parameters
fillBrushfill brush

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