SRGraphStyle Class Overview
This object holds all the style information for all the components and data items used in SRGraph and Objective Chart generally. Each SRGraphData object has a style member to control the visual appearance of the data. Each component has a style which defines how borders are drawn and what background fill is used.SRGraphStyle has an extensive set of Get and Set functions for changing the individual style settings. This is because most of the styles are held in only a few bits of a DWORD variable. Using the Get and Set functions will ensure that no errors are made thereby inadvertently altering other style settings.
The SRGraphStyle object is very "data light" for its complexity. The same style class is used to manage visual and operational styles for all data items and visual components. The reason for this is that in the fullness of time data items themselves may become visual objects which need component type data. One example of this is the SRGraphData item which stores the floating point data which represents a graph. At the moment the SRGraphStyle component is used to define the type of object drawn for this data. Perhaps a bar or a wiget. In later versions the data may be represented by a full fledged, independent, 3 dimensional component which will require all of the style settings.
Don't be tempted to add functions to adjust the styles directly. To keep data to a minimum the styles from one category are stored alongside those of another using a bitwise masking system. As the graph style grows in capabilities it may be necessary to expand the scope of the styles. You will be guaranteed to get (and Set) the correct style using the provided methods. However the style bits and codes themselves may be stored in a different place. There is no mechanism to allow the expansion or customization of the style class.