KChart

KChartLineAttributes.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 KCHARTLINEATTRIBUTES_H
21 #define KCHARTLINEATTRIBUTES_H
22 
23 #include <QMetaType>
24 #include "KChartGlobal.h"
25 
26 namespace KChart {
27 
31 class KCHART_EXPORT LineAttributes
32 {
33 public:
53  MissingValuesAreBridged,
54  MissingValuesHideSegments,
55  MissingValuesShownAsZero,
56  MissingValuesPolicyIgnored };
57 
60  LineAttributes &operator= ( const LineAttributes& );
61 
62  ~LineAttributes();
63 
64  /* line chart and area chart - all types */
65  void setMissingValuesPolicy( MissingValuesPolicy policy );
66  MissingValuesPolicy missingValuesPolicy() const;
67 
68  /* area chart - all types */
75  void setAreaBoundingDataset( int dataset );
76  int areaBoundingDataset() const;
77 
87  void setVisible( bool visible );
88  bool isVisible() const;
89 
90  void setDisplayArea( bool display );
91  bool displayArea() const;
92  /*allows viewing the covered areas*/
93  void setTransparency( uint alpha );
94  uint transparency() const;
95 
96  bool operator==( const LineAttributes& ) const;
97  inline bool operator!=( const LineAttributes& other ) const { return !operator==(other); }
98 
99 private:
100  KCHART_DECLARE_PRIVATE_BASE_VALUE( LineAttributes )
101 }; // End of class LineAttributes
102 
103 }
104 
105 #if !defined(QT_NO_DEBUG_STREAM)
106 KCHART_EXPORT QDebug operator<<(QDebug, const KChart::LineAttributes& );
107 #endif /* QT_NO_DEBUG_STREAM */
108 
109 KCHART_DECLARE_SWAP_SPECIALISATION( KChart::LineAttributes )
110 
111 QT_BEGIN_NAMESPACE
112 Q_DECLARE_TYPEINFO( KChart::LineAttributes, Q_MOVABLE_TYPE );
113 QT_END_NAMESPACE
114 
115 Q_DECLARE_METATYPE( KChart::LineAttributes )
116 
117 #endif // KCHARTLINEATTRIBUTES_H
Set of attributes for changing the appearance of line charts.
Contains KChart macros.
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
MissingValuesPolicy
MissingValuesPolicy specifies how a missing value will be shown in a line diagram.
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 29 2020 22:42:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.