class Legend
Legend represents a legend for an assigned Plot.
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.
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.
|