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