00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KDCHARTLINEATTRIBUTES_H
00027 #define KDCHARTLINEATTRIBUTES_H
00028
00029 #include <QMetaType>
00030 #include "KDChartGlobal.h"
00031
00032 namespace KDChart {
00033
00034 class KDCHART_EXPORT LineAttributes
00035 {
00036 public:
00055 enum MissingValuesPolicy {
00056 MissingValuesAreBridged,
00057 MissingValuesHideSegments,
00058 MissingValuesShownAsZero,
00059 MissingValuesPolicyIgnored };
00060
00061 LineAttributes();
00062 LineAttributes( const LineAttributes& );
00063 LineAttributes &operator= ( const LineAttributes& );
00064
00065 ~LineAttributes();
00066
00067
00068 void setMissingValuesPolicy( MissingValuesPolicy policy );
00069 MissingValuesPolicy missingValuesPolicy() const;
00070
00071
00072 void setDisplayArea( bool display );
00073 bool displayArea() const;
00074
00075 void setTransparency( uint alpha );
00076 uint transparency() const;
00077
00078 bool operator==( const LineAttributes& ) const;
00079 inline bool operator!=( const LineAttributes& other ) const { return !operator==(other); }
00080
00081 private:
00082 KDCHART_DECLARE_PRIVATE_BASE_VALUE( LineAttributes )
00083 };
00084
00085 }
00086
00087 #if !defined(QT_NO_DEBUG_STREAM)
00088 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::LineAttributes& );
00089 #endif
00090
00091 KDCHART_DECLARE_SWAP_SPECIALISATION( KDChart::LineAttributes )
00092 Q_DECLARE_METATYPE( KDChart::LineAttributes )
00093 Q_DECLARE_TYPEINFO( KDChart::LineAttributes, Q_MOVABLE_TYPE );
00094
00095
00096 #endif // KDCHARTLINEATTRIBUTES_H