legend.hpp
Go to the documentation of this file.
LegendEntry(Graph &graph, const std::string &label)
Contructor for legend entry.
Definition: legend.hpp:103
LegendEntry(const LegendEntry &le)
Copy constructor.
Definition: legend.hpp:108
virtual void get_size(cairo_t *cairo, double &width, double &height)
Get size of legend.
Definition: legend.cpp:336
Base for plottable graphs.
Plot labels.
MultiEntryLegend()
Default constructor for legend.
Definition: legend.cpp:89
Three dimensional vectors.
virtual ~MultiEntryLegend()
Virtual destructor.
Definition: legend.hpp:189
void plot(cairo_t *cairo, double x, double y)
Plot legend entry at (x,y).
Definition: legend.cpp:58
void set_height(double height)
Set height of legend.
Definition: legend.cpp:363
void add_entry(LegendEntry *entry)
Add entry to legend.
Definition: legend.cpp:96
virtual void get_size(cairo_t *cairo, double &width, double &height)
Get size of legend.
Definition: legend.cpp:124
virtual void plot(cairo_t *cairo, double x, double y)
Plot legend at (x,y).
Definition: legend.cpp:303
void set_font_size(double fontsize)
Set font size for legend labels.
Definition: legend.cpp:353
void set_font_size(double fontsize)
Set font size for legend labels.
Definition: legend.cpp:151
virtual ~ColormapLegend()
Virtual destructor.
Definition: legend.hpp:261
Colormap graph for plotting
ColormapLegend(Colormap &colormap)
Default constructor for legend.
Definition: legend.cpp:165
virtual void plot(cairo_t *cairo, double x, double y)
Plot legend at (x,y).
Definition: legend.cpp:110
LegendEntry & operator=(const LegendEntry &le)
Assignment operator.
Definition: legend.hpp:117
void get_size(cairo_t *cairo, double &width, double &height)
Get size of legend entry.
Definition: legend.cpp:68
void clear_entries(void)
Clear legend entries.
Definition: legend.cpp:104
virtual void get_size(cairo_t *cairo, double &width, double &height)=0
Get size of legend.
void set_font_size(double fontsize)
Set font size for legend labels.
Definition: legend.cpp:79