Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Legend

 

class Legend

Legend represents a legend for an assigned Plot.

 

Public Method List

 

Legend(Plot& plot)

Construct legend for plot with default properties.

 


 

Legend(Plot& plot,RGBA frame,RGBA background,double width=1)

Construct legend for plot with specified properties.

 

Constructor detail

 

Image GetLegend()const

Returns the legend as Image to be saved or further processed.

 


 

Size GetSizeHint()const

Returns optimal size in which the legend would fit perfectly.

 


 

unsigned GetHashValue()const

Returns a hash that only changes when the Image that would be returned by GetLegend() changes.

 


 

RGBA GetFrameColor()const

Returns color of the frame.

 


 

RGBA GetBackground()const

Returns color of the background.

 


 

Plot& GetPlot()const

Returns reference to the associated Plot.

 


 

double GetFrameWidth()const

Return width of the frame.

 


 

Size GetSize()const

Returns current size.

 


 

Legend& SetFrameColor(RGBA frame)

Return color of the frame.

 


 

Legend& SetBackground(RGBA background)

Returns color of the background.

 


 

Legend& SetPlot(Plot& plot)

Sets legend to reflect the serries in plot.

 


 

Legend& SetFrameWidth(double width)

Sets width of the frame.

 


 

void SetSize(Size sz)

Sets size of the legend.

 

 

Do you want to contribute?