28 #include <KDABLibFakes> 34 class GridAttributes::Private
54 GridAttributes::Private::Private()
62 pen( QColor(0xa0, 0xa0, 0xa0 ) ),
64 subPen( QColor(0xd0, 0xd0, 0xd0 ) ),
66 zeroPen( QColor( 0x00, 0x00, 0x80 ) )
68 pen.setCapStyle( Qt::FlatCap );
69 subPen.setCapStyle( Qt::FlatCap );
70 zeroPen.setCapStyle( Qt::FlatCap );
81 : _d( new Private( *r.
d ) )
118 d->visible = visible;
128 d->linesOnAnnotations = b;
133 return d->linesOnAnnotations;
156 d->stepWidth = stepWidth;
187 d->subStepWidth = subStepWidth;
198 return d->subStepWidth;
220 d->sequence = sequence;
236 d->adjustLower = adjustLower;
237 d->adjustUpper = adjustUpper;
241 return d->adjustLower;
245 return d->adjustUpper;
251 d->pen.setCapStyle( Qt::FlatCap );
261 d->subVisible = visible;
266 return d->subVisible;
272 d->subPen.setCapStyle( Qt::FlatCap );
282 d->outerVisible = visible;
287 return d->outerVisible;
293 d->zeroPen.setCapStyle( Qt::FlatCap );
301 #if !defined(QT_NO_DEBUG_STREAM) 304 dbg <<
"KDChart::GridAttributes(" bool isGridVisible() const
void setSubGridVisible(bool visible)
qreal gridSubStepWidth() const
Returns the sub-step width to be used for calculating the sub-grid lines.
void setSubGridPen(const QPen &pen)
void setGridSubStepWidth(qreal subStepWidth=0.0)
Specifies the sub-step width to be used for calculating the grid sub-lines.
void setAdjustBoundsToGrid(bool adjustLower, bool adjustUpper)
By default visible bounds of the data area are adjusted to match a main grid line.
bool isSubGridVisible() const
GridAttributes & operator=(const GridAttributes &)
qreal gridStepWidth() const
Returns the step width to be used for calculating the grid lines.
GranularitySequence
GranularitySequence specifies the values, that may be applied, to determine a step width within a giv...
bool adjustUpperBoundToGrid() const
void setGridPen(const QPen &pen)
void setLinesOnAnnotations(bool)
When this is enabled, grid lines are drawn only where axis annotations are.
void setGridStepWidth(qreal stepWidth=0.0)
Specifies the step width to be used for calculating the grid lines.
void setGridVisible(bool visible)
bool operator==(const GridAttributes &) const
void setOuterLinesVisible(bool visible)
bool isOuterLinesVisible() const
void setZeroLinePen(const QPen &pen)
KDChartEnums::GranularitySequence gridGranularitySequence() const
Returns the granularity sequence to be used for calculating the grid lines.
A set of attributes controlling the appearance of grids.
QDebug operator<<(QDebug stream, const DataDimension &r)
void setGridGranularitySequence(KDChartEnums::GranularitySequence sequence)
Specify which granularity sequence is to be used to find a matching grid granularity.
bool adjustLowerBoundToGrid() const
bool linesOnAnnotations() const