KChart

KChartLeveyJenningsGrid.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KCHARTLEVEYJENNINGSGRID_H
10#define KCHARTLEVEYJENNINGSGRID_H
11
12#include "KChartCartesianGrid.h"
13
14namespace KChart {
15
16 class PaintContext;
17
18 /**
19 * \internal
20 *
21 * \brief Class for the grid in a Levey Jennings plane.
22 *
23 * The LeveyJenningsGrid interface is used
24 * for calculating and for drawing
25 * the horizontal grid lines, and the vertical grid lines
26 * of a Levey Jennings coordinate plane.
27 */
29 {
30 public:
32 ~LeveyJenningsGrid() override {}
33
34 void drawGrid( PaintContext* context ) override;
35
36 private:
37 DataDimensionsList calculateGrid( const DataDimensionsList& rawDataDimensions ) const override;
38 DataDimension calculateGridXY( const DataDimension& rawDataDimension,
39 Qt::Orientation orientation, bool adjustLower, bool adjustUpper ) const override;
40 void calculateStepWidth( qreal start_, qreal end_, const QList<qreal>& granularities, Qt::Orientation orientation,
41 qreal& stepWidth, qreal& subStepWidth, bool adjustLower, bool adjustUpper ) const override;
42 };
43
44}
45
46#endif
Class for the grid in a cartesian plane.
Helper class for one dimension of data, e.g.
Class for the grid in a Levey Jennings plane.
void drawGrid(PaintContext *context) override
Doing the actual drawing.
Stores information about painting diagrams.
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:55:59 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.