SRGAxisManager Class

class SRGAxisManager: public SRGCompoundComponent

The axis manager is a compound component used by SRGCompoundDisplay to manage one side of the chart axis area. The axis manager may hold up to six types of items. These items are...
labels,
grid lines,
tick marks,
data watcher,
display,
title.
These items are positioned and managed as subcomponents of the axis manager which is, in turn, a subcomponent of the compound display.

Defined in: SRGAxisManager.h

Class Members

CHART_API virtual SRGTickMarks * UnregisterTicks(BOOL bDelete=FALSE)

Removes tick marks from the subcomponent list

CHART_API virtual SRGGridLines * UnregisterGrids(BOOL bDelete=FALSE)

Removes grid lines from the subcomponent list

CHART_API virtual SRGDataWatcher * UnregisterWatcher(BOOL bDelete=FALSE)

Removes the data watcher from the subcomponent list

CHART_API virtual SRGDecimalScale * UnregisterLabels(BOOL bDelete=FALSE)

Removes labels from the subcomponent list

CHART_API virtual SRGDisplayBase * UnregisterDisplay(BOOL bDelete=FALSE)

Removes the display from the subcomponent list

CHART_API virtual SRGraphLabel * UnregisterTitle(BOOL bDelete=FALSE)

Removes the axis title label from the subcomponent list

CHART_API virtual void Serialize(CArchive &ampar)

Serializes this object to the archive

CHART_API virtual SRGGridLines * GetGrids()

Returns the address of the grid line subcomponent

CHART_API virtual void RegisterGrids(SRGGridLines *pG)

Registers a grid line subcomponent

inline virtual void SetNodeAdjust(BOOL b=TRUE)

Turns node adjustment on or off

CHART_API virtual BOOL GetNodeAdjust()

Returns node adjustment status

CHART_API virtual void SetLabelSide(BOOL b)

Specifies which side of the axis line the labels and tick marks are to be drawn -- TRUE=right/above, FALSE=left/below

CHART_API virtual void SetMinValue(double d)

Sets the minimum numeric value used for the axis range

CHART_API virtual void SetMaxValue(double d)

Sets the maximum numeric value used for the axis range

CHART_API virtual void SetScope(SRGScope s)

Sets the scope of the axis manager and all the subcomponents

CHART_API virtual SRGDataWatcher * GetWatcher()

Returns the address of the data watcher subcomponent

CHART_API virtual SRGTickMarks * GetTicks()

Returns the address of the tick mark subcomponent

CHART_API virtual SRGDecimalScale * GetLabels()

Returns the address of the label subcomponent

CHART_API virtual SRGDisplayBase * GetDisplay()

Returns the address of the display subcomponent

CHART_API virtual SRGraphLabel * GetTitle()

Returns the address of the axis title label subcomponent

CHART_API virtual int GetWidth()

Returns the accumulated width of the subcomponents

CHART_API virtual int GetHeight()

Returns the accumulated height of the subcomponents

CHART_API virtual void RegisterDisplay(SRGDisplayBase *pD)

Registers a display subcomponent

inline virtual void SetStartPos(CPoint ptStart)

Sets the start position of the labels, tick marks, and grid lines

inline virtual void SetEndPos(CPoint ptEnd)

Sets the end position of the labels, tick marks, and grid lines

inline virtual CPoint GetStartPos()

Returns the start position of the labels, tick marks, and grid lines

inline virtual CPoint GetEndPos()

Returns the end position of the labels, tick marks, and grid lines

CHART_API virtual void RegisterTicks(SRGTickMarks *pT)

Registers a tick mark subcomponent

CHART_API virtual void RegisterLabels(SRGDecimalScale *pL)

Registers a label subcomponent

CHART_API virtual void RegisterWatcher(SRGDataWatcher *pDW)

Registers a data watcher subcomponent

CHART_API virtual void RegisterTitle(SRGraphLabel *pL)

Registers an axis title label subcomponent

CHART_API SRGAxisManager()

Constructor

CHART_API virtual ~SRGAxisManager()

Destructor

CHART_API virtual void PassTwoSetup()

Performs pre-draw or pre-size initialization of the subcomponents

CHART_API virtual void PassOneSetup()

Performs pre-draw initialization of the subcomponents

BOOL m_bNodeAdjust

Node adjustment flag

BOOL m_bTicksOK

TRUE if labels have been registered

BOOL m_bGridsOK

TRUE if tick marks have been registered

BOOL m_bWatcherOK

TRUE if grid lines have been registered

BOOL m_bDisplayOK

TRUE if a data watcher has been registered

BOOL m_bTitleOK

TRUE if a display has been registered

CPoint m_ptEnd

TRUE if a title label been registered

CPoint m_ptEnd

Position of the end of the axis

CPoint m_ptStart

Position of the start of the axis