SRGraphStyle Class
class SRGraphStyle: public CObject
Manages style data for graphic objects in the graph class kitDefined in: SRGDat.h
Class Members
Public data members
Protected data members
BOOL m_bStyleIsDifferent
set TRUE by modifications to the style (Not serialized)
DWORD m_dwStyleC
Various style flags
COLORREF m_RGBGridColor
RGB color reference for grid lines
DWORD m_dwStyleB
Various style flags -- see bitmask definitions
double m_dMaxHeight
Holds the maximum object height
double m_dMaxDepth
Holds the maximum object depth
double m_dMaxWidth
Holds the maximum object width
CString m_strObjectName
Holds a name used to retrieve resource or file data for this graph display item (ie. the polygon resource for custom bars)
DWORD m_dwStyle
Various style flags -- see bitmask definitions
DWORD m_dwStyleA
Various style flags -- see bitmask definitions
DWORD m_dwComponentStyle
Style for this component
COLORREF m_RGBFrameColor
Color variable for frame (RGB value)
CString m_strFramePattern
Name of the pattern used to fill the frame
int m_nFrameWidth
Width of the frame in pixels
COLORREF m_RGBColorA
Color variable for interior (RGB value)
COLORREF m_RGBColorB
Color variable for interior (RGB value)
double m_dAngle
Angle of vignet
CString m_strImage
Name of an image or resource
double m_dXAngle
Number of degrees the display should be rotated about the X axis (currently used only in Pie charts)
double m_dYAngle
Number of degrees the display should be rotated about the Y axis (currently unused)
double m_dZAngle
Number of degrees the display should be rotated about the Z axis (currently unused)
public member functions
inline BOOL GetImageLoaded()
returns the semaphore that signifies that an image is loaded
inline void SetImageLoaded(BOOL b)
Initializes the semaphore that signifies that an image is loaded
inline BOOL GetBreakLinesOnNull()
Returns the semaphore that allows lines to be broken when a null item is found
inline void SetBreakLinesOnNull(BOOL b)
initializes the semaphore that allows lines to be broken when a null item is found
inline BOOL GetUseThousandSeparator()
Returns flag to insert thousand separators (',') in labels created by SRGDecimalScale and its derivatives
inline void SetUseThousandSeparator(BOOL b)
Sets flag to insert thousand separators (',') in labels created by SRGDecimalScale and its derivatives
inline void SetObjectInsideView(BOOL bInside)
Used in bubble or vector charts to ensure all items are drawn inside the display
inline BOOL GetObjectInsideView()
Tells bubble or vector charts to ensure all items are drawn inside the display
inline void SetLinkTags(BOOL b)
Sets a semaphore that makes tags draw a line from their final position to thier anchor point
inline BOOL GetLinkTags()
Returns the semaphore that makes tags draw a line from their final position to thier anchor point
inline COLORREF GetTagColor()
Returns the tag color settings
inline void SetTagColor(COLORREF c)
Initializes the tag color settings
inline DWORD GetTagModel()
Returns the current tag model
inline void SetTagModel(DWORD dwStyle)
Initializes the tag model
inline DWORD GetTagFontSize()
Returns the tag font size
inline void SetTagFontSize(DWORD dwStyle)
Initializes the tag font size
inline DWORD GetTagOrientation()
Returns the current tag orientation
inline void SetTagOrientation(DWORD dwStyle)
Initializes tag orientation
inline DWORD GetTagPosition()
Returns the current tag position
inline void SetTagPosition(DWORD dwStyle)
Initializes the tag position
inline DWORD GetTagOutlineStyle()
Returns the current tag outline style
inline void SetTagOutlineStyle(DWORD dwStyle)
Initializes the tag outline style
inline BOOL GetUseMaxYScale()
Returns the independent max-scale semaphore for Y axes (not currently used).
inline BOOL GetUseMaxXScale()
Returns the independent max-scale semaphore for X axes (not currently used).
inline void SetUseMaxYScale(BOOL b)
Initialises the independent max-scale semaphore for Y axes (not currently used).
inline void SetUseMaxXScale(BOOL b)
Initialises the independent max-scale semaphore for X axes (not currently used).
inline BOOL GetUseSameXYScaleFactor()
Returns the semaphore that specifies if scatter charts should use the same scaling factor for both x and y axes
inline void SetUseSameXYScaleFactor(BOOL b)
Sets the semaphore that specifies if scatter charts should use the same scaling factor for both x and y axes
inline BOOL GetRelIndex()
Return the relative index semaphore
inline void SetRelIndex(BOOL b)
Initializes the relative index semaphore
inline void SetStyleIsDifferent(BOOL v=TRUE)
Sets the StyleIsDifferent flag
inline BOOL GetStyleIsDifferent()
Retrieves the StyleIsDifferent flag
inline BOOL GetXLCompatibility()
Returns the OC 1.01 label compatibility flag
inline void SetXLCompatibility(BOOL b)
Sets the OC 1.01 compatibility flag
inline BOOL GetHgraph()
Returns the XY scale swap flag
inline void SetHgraph(BOOL b)
Sets XY scale swap flag (compound charts only)
inline BOOL GetCull()
Returns the point culling flag
inline void SetCull(BOOL b)
Sets the point culling flag
inline BOOL GetLogX()
Returns the X scale log setting
inline void SetLogX(BOOL b)
Sets the X scale log setting
inline BOOL GetAutoOrientation()
Returns the automatic orientation flag
inline void SetAutoOrientation(BOOL b)
Sets the automatic orientation flag
inline BOOL GetDeferDraw()
Returns the deferred drawing flag
inline void SetDeferDraw(BOOL b)
Sets the deferred drawing flag
inline int GetLegendColumns()
Returns the number of columns available for legend keys
inline void SetLegendColumns(int n)
Sets the number of columns in which to display legend keys
inline int GetLegendRows()
Returns the number of rows available for legend keys
inline void SetLegendRows(int n)
Sets the number of rows in which to display legend keys
inline BOOL GetScaleLimit()
Returns the scale limiting flag
inline void SetScaleLimit(BOOL style)
Turns scale limiting on or off
inline BOOL GetLegendKeyFirst()
Returns the key-first flag -- TRUE if keys appear to left of text
inline void SetLegendKeyFirst(BOOL style)
Specifies if legend keys should appear before the text, or vica versa
inline BOOL GetLegendLockRC()
Returns the rectangle locking flag for legends
inline void SetLegendLockRC(BOOL style)
Sets rectangle locking for legends
inline BOOL GetDisplayInfoOnly()
NEW 6.01 Returns the Display Info Only semaphore
inline void SetDisplayInfoOnly(BOOL style)
NEW 6.01 Sets the Display Info Only semaphore
inline void SetLegendKeyStyle(DWORD dwStyle)
Initializes the legend key style
inline DWORD GetLegendKeyStyle()
Fetches the legend key style
inline void SetTierXLabels(BOOL style)
Initializes the flag that controls the "tiered" display of label blocks attached to the x-axis
inline void SetTierYLabels(BOOL style)
Initializes the flag that controls the "tiered" display of label blocks attached to the y-axis
inline BOOL GetTierXLabels()
Returns the flag that controls the "tiered" display of label blocks attached to the x-axis
inline BOOL GetTierYLabels()
Returns the flag that controls the "tiered" display of label blocks attached to the y-axis
inline void SetGridColor(COLORREF c)
Initializes the color used to display grid lines
inline COLORREF GetGridColor()
Fetches the grid line color
inline void SetXAngle(double d)
Sets the angle which the display should be rotated about the X axis (currently used only on Pie charts)
inline void SetYAngle(double d)
Sets the angle which the display should be rotated about the Y axis (currently unused)
inline void SetZAngle(double d)
Sets the angle which the display should be rotated about the Z axis (currently unused)
inline double GetXAngle()
Returns the angle which the display should be rotated about the X axis (currently used only on Pie charts)
inline double GetYAngle()
Returns the angle which the display should be rotated about the Y axis (implemented but unused)
inline double GetZAngle()
Returns the angle which the display should be rotated about the Z axis (implemented but unused)
void operator=(const SRGraphStyle &s)
Assignment (copy) operator for Style objects
Constructor
inline void SetAxisStyle(DWORD style)
Sets axis styles
inline DWORD GetAxisStyle()
Interrogates the axis style
inline DWORD GetGraphStyle()
Interrogates the m_dwStyle member
inline DWORD GetLegendStyle()
Interrogates legend style
inline void SetLegendStyle(DWORD style)
Initializes the legend style
inline void SetStyle(DWORD style)
Sets the m_dwStyle member with an absolute code
inline DWORD GetStyle()
Retrieves the m_dwStyle code without masking any bits
inline void SetHighlight(DWORD style)
Sets the highlight flags
inline DWORD GetHighlight()
Returns the highlight flags
inline void SetLabelStyle(DWORD style)
Sets the label flags
inline DWORD GetLabelStyle()
Returns the label flags
inline DWORD GetFrameStyle()
Returns the frame flags
inline DWORD GetObjectStyle()
Returns the object flags
inline void SetObjectStyle(DWORD style)
Sets the object flags
inline void SetResourceName(LPCTSTR name)
Sets the name of the resource or image used in filling
inline CString & GetResourceName()
Retrieves the name of the resource or image used in filling
inline DWORD GetInteriorStyle()
Returns the interior flags
inline DWORD GetType()
Returns the type flags
inline void SetType(DWORD type)
Sets the type flags
inline DWORD GetComponentShadowStyle()
Returns the shadow flags
inline DWORD GetComponentFillStyle()
Returns the shadow flags
inline DWORD GetComponentBorderStyle()
Returns the shadow flags
inline void SetColor(COLORREF color,BOOL bSetB=FALSE)
Alternative color setting routine
inline void SetComponentStyle(DWORD style)
Sets the style flags
inline DWORD GetComponentStyle()
Returns the style flags
inline void SetColor(COLORREF a,COLORREF b)
Sets the component flags
inline void SetGraphStyle(DWORD style)
Initializes graph styles
inline void SetObjectShadeStyle(BOOL style)
Initializes the shading style for data objects
inline BOOL GetObjectShadeStyle()
Interrogates the shading style for data objects
inline void SetFrameColor(COLORREF color)
Sets the pen color used to outline objects
inline void SetMaxObjectHeight(double size)
Sets the maximum height of a data object
inline void SetMaxObjectDepth(double size)
Sets the maximum depth of a data object
inline void SetMaxObjectWidth(double size)
Sets the maximum width of a data object
inline void SetAxisFillStyle(BOOL style)
Sets the axis filling function
inline BOOL GetAxisFillStyle()
Interrogates the axis filling semaphore
inline COLORREF GetFrameColor()
Interrogates the m_FrameColor member
inline COLORREF GetColor(BOOL GetColorB=FALSE)
Interrogates the m_colorA or m_colorB members
inline BOOL GetUseMaxSize()
Determines whether the maximum data object size is to be used
inline void SetUseMaxSize(BOOL flag)
Sets or resets the maximum data object size semaphore
inline double GetMaxObjectHeight()
Interrogates the m_dMaxHeight member
inline double GetMaxObjectWidth()
Interrogates the m_dMaxWidth member
inline double GetMaxObjectDepth()
Interrogates the m_dMaxDepth member
inline void SetComponentShadowStyle(DWORD style)
Sets the shadow style for component display panels
inline void SetComponentBorderStyle(DWORD style)
Sets the border style for component display panels
inline void SetComponentFillStyle(DWORD style)
Sets the interior fill style for component display panels
inline void SetFrameStyle(DWORD style)
Sets the style used for framing graphic data objects
inline void SetInteriorStyle(DWORD style)
Sets the style used to fill the interior areas of graphic data objects
inline BOOL GetStretchMode()
Interrogates the image stretching semaphore
inline void SetStretchMode(BOOL m)
Sets or resets the image stretching semaphore
inline CString& GetObjectName()
Returns the name of the graphic data object
inline void SetObjectName(LPCTSTR name)
Sets the name of the graphic data object
inline void SetAngle(double angle)
Assigns the angle for angled shaded fills
inline double GetAngle()
Retrieves the angle for angled shaded fills
inline int GetFrameWidth()
Retrieves the pen width of lines used to draw frames
inline BOOL GetLegendLine()
Determines if the legend is a line or fill type
inline void SetLegendLine(BOOL style)
Initializes legend style to line or fill type
inline BOOL GetShowIndices()
Determines whether indices should be drawn on axes
inline BOOL GetShowGroups()
Determines whether groups should be drawn on axes
inline BOOL GetShowNumerals()
Determines whether values should be drawn on axes
inline void SetShowGroups(BOOL style)
Defines whether groups should be drawn on axes
inline void SetShowIndices(BOOL style)
Defines whether indices should be drawn on axes
inline void SetShowNumerals(BOOL style)
Defines whether values should be drawn on axes
inline BOOL GetUseEmptyGraph()
Determines whether the "empty" graph symbol should be shown
inline void SetUseEmptyGraph(BOOL style)
Defines whether the "empty" graph symbol should be shown
inline BOOL GetUseMaxScale()
Determines whether the maximum scale values should be used
inline void SetUseMaxScale(BOOL style)
Defines whether the maximum scale values should be used
inline void SetFramePattern(CString& framepattern)
Initializes the frame pattern resource name
inline CString& GetFramePattern()
Retrieves the frame pattern resource name
inline void SetFrameWidth(int FrameWidth)
Initializes the pen width for frames around objects
inline BOOL GetLog()
Gets the Log scaling flag
inline void SetLog(BOOL logFlag=TRUE)
Sets or resets the logarithmic scaling function
inline BOOL GetShowXGrid()
Interrogates the semaphore which enables or disables the display of X grid lines on the axis
inline BOOL GetShowYGrid()
Interrogates the semaphore which enables or disables the display of Y grid lines on the axis
inline BOOL GetShowZGrid()
Interrogates the semaphore which enables or disables the display of Z grid lines on the axis
inline void SetShowXGrid(BOOL style)
Initializes the semaphore which enables or disables the display of X grid lines on the axis
inline void SetShowYGrid(BOOL style)
Initializes the semaphore which enables or disables the display of Y grid lines on the axis
inline void SetShowZGrid(BOOL style)
Initializes the semaphore which enables or disables the display of Z grid lines on the axis
inline BOOL GetShowXTicks()
Interrogates the semaphore which enables or disables the display of X tick marks
inline BOOL GetShowYTicks()
Interrogates the semaphore which enables or disables the display of Y tick marks
inline BOOL GetShowZTicks()
Interrogates the semaphore which enables or disables the display of Z tick marks
inline void SetShowXTicks(BOOL style)
Initializes the semaphore which enables or disables the display of X tick marks
inline void SetShowYTicks(BOOL style)
Initializes the semaphore which enables or disables the display of Y tick marks
inline void SetShowZTicks(BOOL style)
Initializes the semaphore which enables or disables the display of Z tick marks
inline void SetSort(BOOL style)
Initializes the AutoSort flag -- if TRUE auto sorting takes place on Manhattan and Rooftop charts.
inline BOOL GetSort()
Interrogates the AutoSort flag in m_dwStyleC
inline void SetGridOrder(BOOL style)
Sets the order in which grid and data overlay one another
inline BOOL GetGridOrder()
Gets the order in which grid and data overlay one another
inline void DRLock(BOOL style)
Enables or disables the locking of the position of m_DisplayRect
inline BOOL DRIsLocked()
Checks to see if the position of m_DisplayRect is locked
inline BOOL GetAlwaysShowZero()
Interrogates the "Always Show Zero" flag
inline void SetAlwaysShowZero(BOOL style)
Initializes the "Always Show Zero" flag -- if TRUE the graph will allways extend to or cover the zero value
void Serialize(CArchive &ar)
Serialization
void Dump(CDumpContext &dc) const
Debug dumping