Legend for presenting colormap key. More...
#include <legend.hpp>
Public Member Functions | |
| ColormapLegend (Colormap &colormap) | |
| Default constructor for legend. More... | |
| virtual | ~ColormapLegend () |
| 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_height (double height) |
| Set height of legend. More... | |
Legend for presenting colormap key.
|
inline |
Default constructor for legend.
|
inlinevirtual |
Virtual destructor.
|
virtual |
Get size of legend.
|
virtual |
Plot legend at (x,y).
The point (x,y) is the lower left point of the entry.
| void ColormapLegend::set_height | ( | double | height | ) |
Set height of legend.