KD Chart 2: KDChartLineAttributes.h Source File

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# KDChartLineAttributes.h

Go to the documentation of this file.

    00001 /****************************************************************************
    00002  ** Copyright (C) 2006 Klarälvdalens Datakonsult AB.  All rights reserved.
    00003  **
    00004  ** This file is part of the KD Chart library.
    00005  **
    00006  ** This file may be distributed and/or modified under the terms of the
    00007  ** GNU General Public License version 2 as published by the Free Software
    00008  ** Foundation and appearing in the file LICENSE.GPL included in the
    00009  ** packaging of this file.
    00010  **
    00011  ** Licensees holding valid commercial KD Chart licenses may use this file in
    00012  ** accordance with the KD Chart Commercial License Agreement provided with
    00013  ** the Software.
    00014  **
    00015  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    00016  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    00017  **
    00018  ** See http://www.kdab.net/kdchart for
    00019  **   information about KDChart Commercial License Agreements.
    00020  **
    00021  ** Contact info@kdab.net if any conditions of this
    00022  ** licensing are not clear to you.
    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     /* line chart and area chart - all types */
    00068     void setMissingValuesPolicy( MissingValuesPolicy policy );
    00069     MissingValuesPolicy missingValuesPolicy() const;
    00070
    00071     /* area chart - all types */
    00072     void setDisplayArea( bool display );
    00073     bool displayArea() const;
    00074     /*allows viewing the covered areas*/
    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 }; // End of class GridAttributes
    00084
    00085 }
    00086
    00087 #if !defined(QT_NO_DEBUG_STREAM)
    00088 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::LineAttributes& );
    00089 #endif /* QT_NO_DEBUG_STREAM */
    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