LegendEntry Class Reference

Class for legend entry. More...

#include <legend.hpp>

List of all members.

Public Member Functions

 LegendEntry (Graph &drawable, std::string &label)
 Contructor for legend entry.
 LegendEntry (const LegendEntry &le)
 Copy constructor.
 ~LegendEntry ()
 Destructor.
LegendEntryoperator= (const LegendEntry &le)
 Assignment operator.
void plot (cairo_t *cairo, double x, double y) const
 Plot legend entry.
void get_size (double &width, double &height) const
 Get size of legend entry.

Detailed Description

Class for legend entry.

The legend entries contain a reference to the drawable so that if the style used in the drawable is changed, the sample in legend is automatically changed.


Constructor & Destructor Documentation

LegendEntry::LegendEntry ( Graph drawable,
std::string &  label 
) [inline]

Contructor for legend entry.

LegendEntry::LegendEntry ( const LegendEntry le  )  [inline]

Copy constructor.

LegendEntry::~LegendEntry (  )  [inline]

Destructor.


Member Function Documentation

void LegendEntry::get_size ( double &  width,
double &  height 
) const

Get size of legend entry.

LegendEntry& LegendEntry::operator= ( const LegendEntry le  )  [inline]

Assignment operator.

void LegendEntry::plot ( cairo_t *  cairo,
double  x,
double  y 
) const

Plot legend entry.


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

Generated on 18 Apr 2011 for IBSimu by  doxygen 1.6.1