KChart

KChartRadarCoordinatePlane.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 KCHART_RADAR_COORDINATEPLANE_H
10#define KCHART_RADAR_COORDINATEPLANE_H
11
12#include "KChartPolarCoordinatePlane.h"
13
14namespace KChart {
15
16 class Chart;
17
18 /**
19 * @brief Radar coordinate plane
20 */
21 class KCHART_EXPORT RadarCoordinatePlane : public PolarCoordinatePlane
22 {
23 Q_OBJECT
24
25 Q_DISABLE_COPY( RadarCoordinatePlane )
26 KCHART_DECLARE_PRIVATE_DERIVED_PARENT( RadarCoordinatePlane, Chart* )
27
28 public:
29
30 explicit RadarCoordinatePlane ( Chart* parent = nullptr );
31 ~RadarCoordinatePlane() override;
32
33
34 /**
35 * Set the attributes to be used for axis captions.
36 *
37 * To disable axis captions, for example, your code should like this:
38 * \code
39 * TextAttributes ta = plane->textAttributes();
40 * ta.setVisible( false );
41 * plane-setTextAttributes( ta );
42 * \endcode
43 */
44 void setTextAttributes( const TextAttributes & attr );
45
46 /**
47 * \return The attributes used for axis.
48 *
49 * \note This function always returns a valid set of text attributes:
50 * If no special text attributes was set a default one is
51 * returned.
52 *
53 * \sa setTextAttributes
54 */
55 const TextAttributes textAttributes() const;
56
57 };
58
59}
60
61#endif
A chart with one or more diagrams.
Definition KChartChart.h:85
A set of text attributes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.