KChart

KChartLeveyJenningsCoordinatePlane.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 KCHARTLEVEYJENNINGSCOORDINATEPLANE_H
10#define KCHARTLEVEYJENNINGSCOORDINATEPLANE_H
11
12#include "KChartCartesianCoordinatePlane.h"
13
14#include "KChartLeveyJenningsGridAttributes.h"
15
16namespace KChart {
17
18 class LeveyJenningsGrid;
19
20 /**
21 * @brief Levey Jennings coordinate plane
22 * This is actually nothing real more than a plain cartesian
23 * coordinate plane. The difference is, that only Levey Jennings
24 * Diagrams can be added to it.
25 */
26 class KCHART_EXPORT LeveyJenningsCoordinatePlane
28 {
29 Q_OBJECT
30 Q_DISABLE_COPY( LeveyJenningsCoordinatePlane )
31 KCHART_DECLARE_PRIVATE_DERIVED_PARENT( LeveyJenningsCoordinatePlane, Chart* )
32
33 friend class LeveyJenningsGrid;
34
35 public:
36 explicit LeveyJenningsCoordinatePlane( Chart* parent = nullptr );
38
39 void addDiagram( AbstractDiagram* diagram ) override;
40
41 LeveyJenningsGridAttributes gridAttributes() const;
42 void setGridAttributes( const LeveyJenningsGridAttributes& attr );
43
44 protected:
45 const QPointF translateBack( const QPointF& screenPoint ) const;
46
47 private:
48 LeveyJenningsGrid* grid() const;
49 };
50
51}
52
53#endif
AbstractDiagram defines the interface for diagram classes.
A chart with one or more diagrams.
Definition KChartChart.h:85
Levey Jennings coordinate plane This is actually nothing real more than a plain cartesian coordinate ...
A set of attributes controlling the appearance of grids.
Class for the grid in a Levey Jennings plane.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 27 2024 11:49:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.