Version: 0.6.0
GradientAreaDraw Class Reference

#include <areadraw.h>

Inheritance diagram for GradientAreaDraw:
Collaboration diagram for GradientAreaDraw:

Public Member Functions

 GradientAreaDraw (wxPen borderPen=*wxBLACK_PEN, wxColour colour1=wxColour(200, 220, 250), wxColour colour2=wxColour(255, 255, 255), wxDirection dir=wxEAST)
 
virtual void Draw (wxDC &dc, wxRect rc)
 
void SetColour1 (wxColour colour1)
 
void SetColour2 (wxColour colour2)
 
void SetDirection (wxDirection dir)
 
- 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

Gradient fill area. Uses linear gradient fill to draw area.

Constructor & Destructor Documentation

GradientAreaDraw::GradientAreaDraw ( wxPen  borderPen = *wxBLACK_PEN,
wxColour  colour1 = wxColour(200, 220, 250),
wxColour  colour2 = wxColour(255, 255, 255),
wxDirection  dir = wxEAST 
)

Constructs new gradient area background.

Parameters
borderPenpen to draw border
colour1first gradient fill color
colour2second gradient fill color
dirgradient fill direction

Member Function Documentation

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

Draw area background.

Parameters
dcdevice context
rcrectangle of area to draw

Implements AreaDraw.

void GradientAreaDraw::SetColour1 ( wxColour  colour1)
inline

Sets gradient fill first color.

Parameters
colour1first color
void GradientAreaDraw::SetColour2 ( wxColour  colour2)
inline

Sets gradient fill second color.

Parameters
colour2second color
void GradientAreaDraw::SetDirection ( wxDirection  dir)
inline

Sets gradient fill direction.

Parameters
dirdirection

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