MultiEntryLegend Class Reference
Legend for presenting plot styles. More...
#include <legend.hpp>
Public Member Functions | |
| MultiEntryLegend () | |
| Default constructor for legend. | |
| virtual | ~MultiEntryLegend () |
| Virtual destructor. | |
| virtual void | plot (cairo_t *cairo, double x, double y) |
| Plot legend at (x,y). | |
| virtual void | get_size (cairo_t *cairo, double &width, double &height) const |
| Get size of legend. | |
| void | set_font_size (double fontsize) |
| Set font size for legend labels. | |
| void | add_entry (LegendEntry *entry) |
| Add entry to legend. | |
| void | clear_entries (void) |
| Clear legend entries. | |
Detailed Description
Legend for presenting plot styles.
Constructor & Destructor Documentation
| MultiEntryLegend::MultiEntryLegend | ( | ) |
Default constructor for legend.
| virtual MultiEntryLegend::~MultiEntryLegend | ( | ) | [inline, virtual] |
Virtual destructor.
Member Function Documentation
| void MultiEntryLegend::add_entry | ( | LegendEntry * | entry | ) |
Add entry to legend.
| void MultiEntryLegend::clear_entries | ( | void | ) |
Clear legend entries.
| virtual void MultiEntryLegend::get_size | ( | cairo_t * | cairo, | |
| double & | width, | |||
| double & | height | |||
| ) | const [virtual] |
Get size of legend.
| virtual void MultiEntryLegend::plot | ( | cairo_t * | cairo, | |
| double | x, | |||
| double | y | |||
| ) | [virtual] |
Plot legend at (x,y).
The point (x,y) is the lower left point of the entry.
| void MultiEntryLegend::set_font_size | ( | double | fontsize | ) |
Set font size for legend labels.
The documentation for this class was generated from the following file: