mpInfoLegend Class Reference

Implements the legend to be added to the plot This layer allows you to add a legend to describe the plots in the window. The legend uses the layer name as a label, and displays only layers of type mpLAYER_PLOT. More...

#include <mathplot.h>

Inheritance diagram for mpInfoLegend:
mpInfoLayer mpLayer

List of all members.

Public Member Functions

 mpInfoLegend ()
 mpInfoLegend (wxRect rect, const wxBrush *brush=wxTRANSPARENT_BRUSH)
 ~mpInfoLegend ()
virtual void UpdateInfo (mpWindow &w, wxEvent &event)
virtual void Plot (wxDC &dc, mpWindow &w)

Detailed Description

Implements the legend to be added to the plot This layer allows you to add a legend to describe the plots in the window. The legend uses the layer name as a label, and displays only layers of type mpLAYER_PLOT.


Constructor & Destructor Documentation

mpInfoLegend::mpInfoLegend (  ) 

Default constructor

mpInfoLegend::mpInfoLegend ( wxRect  rect,
const wxBrush *  brush = wxTRANSPARENT_BRUSH 
)

Complete constructor, setting initial rectangle and background brush.

Parameters:
rect The initial bounding rectangle.
brush The wxBrush to be used for box background: default is transparent
See also:
mpInfoLayer::mpInfoLayer
mpInfoLegend::~mpInfoLegend (  ) 

Default destructor


Member Function Documentation

void mpInfoLegend::Plot ( wxDC &  dc,
mpWindow w 
) [virtual]
void mpInfoLegend::UpdateInfo ( mpWindow w,
wxEvent &  event 
) [virtual]

Updates the content of the info box. Unused in this class.

Parameters:
w parent mpWindow from which to obtain information
event The event which called the update.

Reimplemented from mpInfoLayer.


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

© 2003 David Schalig, 2007-2008 Davide Rondini. Generated on Sun Dec 13 12:39:25 2009 for wxMathPlot with Doxygen. Hosted on SourceForge.net Logo