KChart

KChartLeveyJenningsAxis.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KCHARTLEVEYJENNINGSAXIS_H
21 #define KCHARTLEVEYJENNINGSAXIS_H
22 
23 #include <QList>
24 
25 #include "KChartCartesianAxis.h"
26 
27 #include "KChartLeveyJenningsGridAttributes.h"
28 
29 namespace KChart {
30 
31  class LeveyJenningsDiagram;
32 
41  class KCHART_EXPORT LeveyJenningsAxis : public CartesianAxis
42  {
43  Q_OBJECT
44 
45  Q_DISABLE_COPY( LeveyJenningsAxis )
46  KCHART_DECLARE_PRIVATE_DERIVED_PARENT( LeveyJenningsAxis, AbstractDiagram* )
47 
48  public:
59  explicit LeveyJenningsAxis ( LeveyJenningsDiagram* diagram = nullptr );
61 
65  LeveyJenningsGridAttributes::GridType type() const;
66 
76  void setType( LeveyJenningsGridAttributes::GridType type );
77 
78  Qt::DateFormat dateFormat() const;
79  void setDateFormat( Qt::DateFormat format );
80 
84  bool compare( const LeveyJenningsAxis* other ) const;
85 
87  void paintCtx( PaintContext* ) override;
88 
89  protected:
90  virtual void paintAsOrdinate( PaintContext* );
91 
92  virtual void paintAsAbscissa( PaintContext* );
93  };
94 
96 }
97 
98 #endif
The class for levey jennings axes.
AbstractDiagram defines the interface for diagram classes.
DateFormat
LeveyDiagram defines a Levey Jennings chart.
The class for cartesian axes.
Stores information about painting diagrams.
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:36:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.