![]() |
KD Chart API Documentation
3.1
|
A set of attributes controlling the appearance of grids. More...
#include <KDChartGridAttributes.h>
A set of attributes controlling the appearance of grids.
Definition at line 27 of file KDChartGridAttributes.h.
GridAttributes::GridAttributes | ( | ) |
Definition at line 54 of file KDChartGridAttributes.cpp.
GridAttributes::GridAttributes | ( | const GridAttributes & | r | ) |
Definition at line 60 of file KDChartGridAttributes.cpp.
GridAttributes::~GridAttributes | ( | ) |
Definition at line 75 of file KDChartGridAttributes.cpp.
bool GridAttributes::adjustLowerBoundToGrid | ( | ) | const |
Definition at line 208 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), and operator==().
bool GridAttributes::adjustUpperBoundToGrid | ( | ) | const |
Definition at line 212 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), and operator==().
KDChartEnums::GranularitySequence GridAttributes::gridGranularitySequence | ( | ) | const |
Returns the granularity sequence to be used for calculating the grid lines.
Definition at line 198 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::getDataDimensionsList(), and operator==().
QPen GridAttributes::gridPen | ( | ) | const |
Definition at line 223 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), operator<<(), and operator==().
qreal GridAttributes::gridStepWidth | ( | ) | const |
Returns the step width to be used for calculating the grid lines.
Definition at line 135 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::getDataDimensionsList(), and operator<<().
qreal GridAttributes::gridSubStepWidth | ( | ) | const |
Returns the sub-step width to be used for calculating the sub-grid lines.
Definition at line 165 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::getDataDimensionsList(), and operator<<().
bool GridAttributes::isGridVisible | ( | ) | const |
Definition at line 91 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), KDChart::PolarGrid::drawGrid(), KDChart::RadarGrid::drawGrid(), operator<<(), and operator==().
bool GridAttributes::isOuterLinesVisible | ( | ) | const |
Definition at line 254 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), and operator==().
bool GridAttributes::isSubGridVisible | ( | ) | const |
Definition at line 233 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), operator<<(), and operator==().
bool GridAttributes::linesOnAnnotations | ( | ) | const |
Definition at line 101 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), and operator==().
|
inline |
Definition at line 98 of file KDChartGridAttributes.h.
References KDChart::operator==().
GridAttributes & GridAttributes::operator= | ( | const GridAttributes & | r | ) |
Definition at line 65 of file KDChartGridAttributes.cpp.
References d.
bool GridAttributes::operator== | ( | const GridAttributes & | r | ) | const |
Definition at line 81 of file KDChartGridAttributes.cpp.
References adjustLowerBoundToGrid(), adjustUpperBoundToGrid(), gridGranularitySequence(), gridPen(), isGridVisible(), isOuterLinesVisible(), isSubGridVisible(), linesOnAnnotations(), subGridPen(), and zeroLinePen().
void GridAttributes::setAdjustBoundsToGrid | ( | bool | adjustLower, |
bool | adjustUpper | ||
) |
By default visible bounds of the data area are adjusted to match a main grid line. If you set the respective adjust flag to false the bound will not start at a grid line's value but it will be the exact value of the data range set.
Definition at line 203 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setGridGranularitySequence | ( | KDChartEnums::GranularitySequence | sequence | ) |
Specify which granularity sequence is to be used to find a matching grid granularity.
See details explained at KDChartEnums::GranularitySequence.
You might also want to use setAdjustBoundsToGrid for fine-tuning the start/end value.
Specifies the granularity sequence to be used for calculating the grid lines.
By default the GridAttributes class uses KDChartEnums::GranularitySequence_10_20.
sequence | one of the sequences declared in KDChartEnums::GranularitySequence. |
Definition at line 187 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setGridPen | ( | const QPen & | pen | ) |
Definition at line 217 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setGridStepWidth | ( | qreal | stepWidth = 0.0 | ) |
Specifies the step width to be used for calculating the grid lines.
By default the GridAttributes class does not use a fixed step width, but it uses KDChartEnums::GranularitySequence_10_20.
stepWidth | the step width to be used. If this parameter is omitted (or set to Zero, resp.) the automatic step width calculation will be done, using the granularity sequence specified. This is the default. |
Definition at line 124 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setGridSubStepWidth | ( | qreal | subStepWidth = 0.0 | ) |
Specifies the sub-step width to be used for calculating the grid sub-lines.
subStepWidth | the sub-step width to be used. If this parameter is omitted (or set to Zero, resp.) the automatic calculation will be done, using the granularity sequence specified. This is the default. |
Definition at line 154 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setGridVisible | ( | bool | visible | ) |
Definition at line 86 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setLinesOnAnnotations | ( | bool | b | ) |
When this is enabled, grid lines are drawn only where axis annotations are. Otherwise annotations are disregarded as far as the grid is concerned.
The default is false.
Definition at line 96 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setOuterLinesVisible | ( | bool | visible | ) |
Definition at line 249 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setSubGridPen | ( | const QPen & | pen | ) |
Definition at line 238 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setSubGridVisible | ( | bool | visible | ) |
Definition at line 228 of file KDChartGridAttributes.cpp.
References d.
void GridAttributes::setZeroLinePen | ( | const QPen & | pen | ) |
Definition at line 259 of file KDChartGridAttributes.cpp.
References d.
QPen GridAttributes::subGridPen | ( | ) | const |
Definition at line 244 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), operator<<(), and operator==().
QPen GridAttributes::zeroLinePen | ( | ) | const |
Definition at line 265 of file KDChartGridAttributes.cpp.
References d.
Referenced by KDChart::CartesianGrid::drawGrid(), operator<<(), and operator==().