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
00037 class KDCHART_EXPORT LineAttributes
00038 {
00039 public:
00058 enum MissingValuesPolicy {
00059 MissingValuesAreBridged,
00060 MissingValuesHideSegments,
00061 MissingValuesShownAsZero,
00062 MissingValuesPolicyIgnored };
00063
00064 LineAttributes();
00065 LineAttributes( const LineAttributes& );
00066 LineAttributes &operator= ( const LineAttributes& );
00067
00068 ~LineAttributes();
00069
00070
00071 void setMissingValuesPolicy( MissingValuesPolicy policy );
00072 MissingValuesPolicy missingValuesPolicy() const;
00073
00074
00075 void setDisplayArea( bool display );
00076 bool displayArea() const;
00077
00078 void setTransparency( uint alpha );
00079 uint transparency() const;
00080
00081 bool operator==( const LineAttributes& ) const;
00082 inline bool operator!=( const LineAttributes& other ) const { return !operator==(other); }
00083
00084 private:
00085 KDCHART_DECLARE_PRIVATE_BASE_VALUE( LineAttributes )
00086 };
00087
00088 }
00089
00090 #if !defined(QT_NO_DEBUG_STREAM)
00091 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::LineAttributes& );
00092 #endif
00093
00094 KDCHART_DECLARE_SWAP_SPECIALISATION( KDChart::LineAttributes )
00095 Q_DECLARE_METATYPE( KDChart::LineAttributes )
00096 Q_DECLARE_TYPEINFO( KDChart::LineAttributes, Q_MOVABLE_TYPE );
00097
00098
00099 #endif // KDCHARTLINEATTRIBUTES_H