class GridLine: public AlterableObject
Implements a grid line object. Grid lines are used in bar charts, grouped bar charts and stacked bar charts.
Inherits from AlterableObject.
GridLine | Implements a grid line object. |
Functions | |
GridLine | Initializes the object. |
~GridLine | Releases all allocated resources. |
Draw | Draws the grid line. |
DrawLabels | Draws the label assigned to the grid line. |
ChangePosition | Changes the position of the grid line. |
ChangeAlpha | Changes the alpha value of the grid line. |
GetRelativeHeight | Returns the height of the Y coordinate of the grid line in viewing coordinates. |
GetValue | Returns the assigned value of the grid line as float value. |
GetRed | Returns the red color value of the grid line. |
GetGreen | Returns the green color value of the grid line. |
GetBlue | Returns the blue color value of the grid line. |
GetAlpha | Returns the alpha color value of the grid line. |
GetHeight | Returns the assigned value of the grid line. |
GetRow | Returns the index of the grid line. |
void Draw( QPainter * pPainter )
Draws the grid line. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the grid line. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Changes the position of the grid line. Inherited from AlterableObject.
fDeltaLeft | Unused parameter. |
fDeltaTop | Total vertical distance according to the upper vertices. |
fDeltaBottom | Unused parameter. |
void ChangeAlpha( float fDeltaAlpha )
Changes the alpha value of the grid line. Inherited from AlterableObject.
fDeltaAlpha | Change of alpha value. |
Implements a grid line object.
class GridLine: public AlterableObject
Initializes the object.
GridLine( int iHeight, int iRow )
Releases all allocated resources.
~GridLine()
Draws the grid line.
void Draw( QPainter * pPainter )
Draws the label assigned to the grid line.
void DrawLabels( QPainter * pPainter )
Changes the position of the grid line.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Changes the alpha value of the grid line.
void ChangeAlpha( float fDeltaAlpha )
Returns the height of the Y coordinate of the grid line in viewing coordinates.
float GetRelativeHeight()
Returns the assigned value of the grid line as float value.
float GetValue()
Returns the red color value of the grid line.
float GetRed()
Returns the green color value of the grid line.
float GetGreen()
Returns the blue color value of the grid line.
float GetBlue()
Returns the alpha color value of the grid line.
float GetAlpha()
Returns the assigned value of the grid line.
int GetHeight()
Returns the index of the grid line.
int GetRow()
Abstract class that implements the skeleton of an alterable object, i.e.
class AlterableObject