Legend for presenting plot styles. More...
#include <legend.hpp>
Public Member Functions | |
| MultiEntryLegend () | |
| Default constructor for legend. More... | |
| virtual | ~MultiEntryLegend () |
| Virtual destructor. More... | |
| virtual void | plot (cairo_t *cairo, double x, double y) |
| Plot legend at (x,y). More... | |
| virtual void | get_size (cairo_t *cairo, double &width, double &height) const |
| Get size of legend. More... | |
| void | set_font_size (double fontsize) |
| Set font size for legend labels. More... | |
| void | add_entry (LegendEntry *entry) |
| Add entry to legend. More... | |
| void | clear_entries (void) |
| Clear legend entries. More... | |
Legend for presenting plot styles.
| MultiEntryLegend::MultiEntryLegend | ( | ) |
Default constructor for legend.
|
inlinevirtual |
Virtual destructor.
| void MultiEntryLegend::add_entry | ( | LegendEntry * | entry | ) |
Add entry to legend.
| void MultiEntryLegend::clear_entries | ( | void | ) |
Clear legend entries.
|
virtual |
Get size of legend.
|
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.