kchart
KDChartData Class Reference
#include <KDChartDataIntern.h>
Detailed Description
Encapsulates one data cell in a chart.Data cells either hold one value for the ordinate axis or they hold two values: one for the ordinate axis and an extra one for the abscissa axis.
Ordinate values can either be of type double or non-existant, abscissa values can either be of type double or QDateTime or non-existant.
- Note:
- All methods returning one of the data values (or one of the data types, resp.) expect a valNo parameter with either a 1 for the first value (the Y or ordinate value) or a 2 for the second value (the X or abscissa value).
Definition at line 47 of file KDChartDataIntern.h.
Public Member Functions | |
KDChartData () | |
KDChartData (double value) | |
KDChartData (const QString &value) | |
KDChartData (double yValue, QDateTime xValue) | |
KDChartData (const QVariant &_value1, const QVariant &_value2) | |
KDChartData (double yValue, double xValue) | |
bool | operator== (const KDChartData &it) const |
bool | operator!= (const KDChartData &it) const |
bool | isEqual (const KDChartData &a, const KDChartData &b) const |
void | setAll (const KDChartData &R) |
void | setData (const KDChartData &R) |
QVariant::Type | valueType (int valNo=1) const |
bool | hasValue (int valNo=1) const |
bool | isString (int valNo=1) const |
bool | isDouble (int valNo=1) const |
bool | isDateTime (int valNo=1) const |
void | clearValue () |
QVariant | value (int valNo=1) const |
QString | stringValue (int valNo=1) const |
double | doubleValue (int valNo=1) const |
QDateTime | dateTimeValue (int valNo=1) const |
void | setPropertySet (int propSetID=0) |
int | propertySet () const |
Constructor & Destructor Documentation
|
Constructor. Creates a KDChartData object that represents no value. Definition at line 52 of file KDChartDataIntern.h. |
|
Constructor. Assigns a double value to this object.
Definition at line 60 of file KDChartDataIntern.h. |
|
Constructor. Assigns a string value to this object. This data type may be used to store axis labels or legend texts in extra data cells.
Definition at line 66 of file KDChartDataIntern.h. |
|
Constructor. Assigns a double value and a QDateTime value to this object.
Definition at line 82 of file KDChartDataIntern.h. |
|
Constructor. Assigns two double values to this object.
Definition at line 134 of file KDChartDataIntern.h. |
Member Function Documentation
|
Resets both of the data types of this cell to KDChartData::NoValue and sets the property set ID to KDCHART_PROPSET_NORMAL_DATA.
Definition at line 329 of file KDChartDataIntern.h. |
|
Returns the QDateTime value represented by this object, or QDateTime() if this object does not represent a QDateTime value. You may use isDateTime() to check if it is appropriate to call this function.
Definition at line 378 of file KDChartDataIntern.h. |
|
Returns the double value represented by this object, or DBL_MIN if this object does not represent a double value. You may use isDouble() or isNormalDouble() to check if it is appropriate to call this function.
Definition at line 372 of file KDChartDataIntern.h. |
|
Returns true if the object represents a value (double or QString) and false otherwise.
Definition at line 302 of file KDChartDataIntern.h. |
|
Returns true if the object represents a QDateTime value and false otherwise.
Definition at line 321 of file KDChartDataIntern.h. |
|
Returns true if the object represents a double value and false otherwise.
Definition at line 315 of file KDChartDataIntern.h. |
|
Compare method.
Definition at line 195 of file KDChartDataIntern.h. |
|
Returns true if the object represents a QString value and false otherwise.
Definition at line 309 of file KDChartDataIntern.h. |
|
Compare operator.
Definition at line 183 of file KDChartDataIntern.h. |
|
Compare operator.
Definition at line 173 of file KDChartDataIntern.h. |
|
Return the ID of the property set that is assigned to this data cell. Use KDChartParams::properties( int ID ) for accessing the respective property set information.
Definition at line 409 of file KDChartDataIntern.h. |
|
Method setAll.
Definition at line 246 of file KDChartDataIntern.h. |
|
Method setData.
Definition at line 261 of file KDChartDataIntern.h. |
|
Assign a property set to a data cell.
Definition at line 397 of file KDChartDataIntern.h. |
|
Returns the string value represented by this object, or QString::null if this object does not represent a string value. You may use isString() to check if it is appropriate to call this function.
Definition at line 363 of file KDChartDataIntern.h. |
|
Returns the type of the respective value.
Definition at line 296 of file KDChartDataIntern.h. |
The documentation for this class was generated from the following files: