#include <legend.hpp>
Public Member Functions | |
ColormapLegend (Colormap &colormap) | |
Default constructor for legend. | |
virtual | ~ColormapLegend () |
Virtual destructor. | |
virtual void | plot (cairo_t *cairo, double x, double y) const |
Plot legend at (x,y). | |
virtual void | get_size (double &width, double &height) const |
Get size of legend. | |
void | set_height (double height) |
Set height of legend. |
ColormapLegend::ColormapLegend | ( | Colormap & | colormap | ) | [inline] |
Default constructor for legend.
virtual ColormapLegend::~ColormapLegend | ( | ) | [inline, virtual] |
Virtual destructor.
virtual void ColormapLegend::get_size | ( | double & | width, | |
double & | height | |||
) | const [virtual] |
Get size of legend.
virtual void ColormapLegend::plot | ( | cairo_t * | cairo, | |
double | x, | |||
double | y | |||
) | const [virtual] |
Plot legend at (x,y).
void ColormapLegend::set_height | ( | double | height | ) |
Set height of legend.