SRGraphLegend Class Overview
Derived from SRGraphTitle and inheriting the text handling abilities of the base class the legend class displays annotations and coded keys for graphs. Like its ancestor SRGraphComponent it has the ability to draw backgrounds, borders and shadows.Automatic legending SRGraphLegend uses the m_pParentGraph pointer to gain access to the m_ComponentList member of the owner graph. It then scans the graph list to see if the item immediately before it in the list is an SRGraphDisplay object. If this is found to be the case SRGraphLegend uses the graph type and scope information in the display to generate an automatic legend which is tailored to the display. If you do not want to use this feature you should either place the SRGraphLegend first in the list or separate it from the display by either another useful component (the graph title or a label perhaps) or put a dummy SRGraphcomponent with zero size before it on the list.