Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
LegendEntry Class Reference

Class for legend entry. More...

#include <legend.hpp>

Public Member Functions

 LegendEntry (Graph &graph, const std::string &label)
 Contructor for legend entry. More...
 
 LegendEntry (const LegendEntry &le)
 Copy constructor. More...
 
 ~LegendEntry ()
 Destructor. More...
 
LegendEntryoperator= (const LegendEntry &le)
 Assignment operator. More...
 
void plot (cairo_t *cairo, double x, double y)
 Plot legend entry at (x,y). More...
 
void get_size (cairo_t *cairo, double &width, double &height)
 Get size of legend entry. More...
 
void set_font_size (double fontsize)
 Set font size for legend labels. More...
 

Detailed Description

Class for legend entry.

The legend entries contain a reference to the graph drawn so that if the style used in the graph is changed, the sample in legend is automatically changed.

Plotting of graph sample is done by plot_sample() in Graph.

Constructor & Destructor Documentation

◆ LegendEntry() [1/2]

LegendEntry::LegendEntry ( Graph graph,
const std::string &  label 
)
inline

Contructor for legend entry.

◆ LegendEntry() [2/2]

LegendEntry::LegendEntry ( const LegendEntry le)
inline

Copy constructor.

◆ ~LegendEntry()

LegendEntry::~LegendEntry ( )
inline

Destructor.

Member Function Documentation

◆ get_size()

void LegendEntry::get_size ( cairo_t *  cairo,
double &  width,
double &  height 
)

Get size of legend entry.

◆ operator=()

LegendEntry& LegendEntry::operator= ( const LegendEntry le)
inline

Assignment operator.

◆ plot()

void LegendEntry::plot ( cairo_t *  cairo,
double  x,
double  y 
)

Plot legend entry at (x,y).

The point (x,y) is the lower left point of the entry.

◆ set_font_size()

void LegendEntry::set_font_size ( double  fontsize)

Set font size for legend labels.


The documentation for this class was generated from the following files:


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.