KD Chart API Documentation  3.1
KDChartLeveyJenningsAxis.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Chart library.
4 **
5 ** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDCHARTLEVEYJENNINGSAXIS_H
12 #define KDCHARTLEVEYJENNINGSAXIS_H
13 
14 #include <QList>
15 
16 #include "KDChartCartesianAxis.h"
17 
19 
20 namespace KDChart {
21 
22 class LeveyJenningsDiagram;
23 
32 class KDCHART_EXPORT LeveyJenningsAxis : public CartesianAxis
33 {
34  Q_OBJECT
35 
36  Q_DISABLE_COPY(LeveyJenningsAxis)
38 
39 public:
50  explicit LeveyJenningsAxis(LeveyJenningsDiagram *diagram = nullptr);
51  ~LeveyJenningsAxis() override;
52 
54  void setType(LeveyJenningsGridAttributes::GridType type);
55 
56  Qt::DateFormat dateFormat() const;
57  void setDateFormat(Qt::DateFormat format);
58 
62  bool compare(const LeveyJenningsAxis *other) const;
63 
65  void paintCtx(PaintContext *) override;
66 
67 protected:
68  virtual void paintAsOrdinate(PaintContext *);
69 
70  virtual void paintAsAbscissa(PaintContext *);
71 };
72 
73 typedef QList<LeveyJenningsAxis *> LeveyJenningsAxisList;
74 }
75 
76 #endif
#define KDCHART_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)
Definition: KDChartGlobal.h:50
AbstractDiagram defines the interface for diagram classes.
LeveyDiagram defines a Levey Jennings chart.
Stores information about painting diagrams.
QList< LeveyJenningsAxis * > LeveyJenningsAxisList

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1