KD Chart 2
[rev.2.7]
|
Set of attributes for changing the appearance of line charts. More...
#include <KDChartLineAttributes.h>
Public Types | |
enum | MissingValuesPolicy { MissingValuesAreBridged, MissingValuesHideSegments, MissingValuesShownAsZero, MissingValuesPolicyIgnored } |
MissingValuesPolicy specifies how a missing value will be shown in a line diagram. More... | |
Public Member Functions | |
int | areaBoundingDataset () const |
bool | displayArea () const |
LineAttributes () | |
LineAttributes (const LineAttributes &) | |
MissingValuesPolicy | missingValuesPolicy () const |
bool | operator!= (const LineAttributes &other) const |
LineAttributes & | operator= (const LineAttributes &) |
bool | operator== (const LineAttributes &) const |
void | setAreaBoundingDataset (int dataset) |
Sets the lower or upper (depending on the displayed value being positive or negative, resp.) bounding line (i.e., the dataset with the line data). More... | |
void | setDisplayArea (bool display) |
void | setMissingValuesPolicy (MissingValuesPolicy policy) |
void | setTransparency (uint alpha) |
uint | transparency () const |
~LineAttributes () | |
Set of attributes for changing the appearance of line charts.
Definition at line 34 of file KDChartLineAttributes.h.
MissingValuesPolicy specifies how a missing value will be shown in a line diagram.
Missing value is assumed if the data cell contains a QVariant that can not be interpreted as a qreal, or if the data cell is hidden while its dataset is not hidden.
MissingValuesAreBridged
the default: No markers will be shown for missing values but the line will be bridged if there is at least one valid cell before and after the missing value(s), otherwise the segment will be hidden. MissingValuesHideSegments
Line segments starting with a missing value will not be shown, and no markers will be shown for missing values, so this will look like a piece of the line is missing. MissingValuesShownAsZero
Missing value(s) will be treated like normal zero values, and markers will shown for them too, so there will be no visible difference between a zero value and a missing value. MissingValuesPolicyIgnored
(internal value, do not use) Enumerator | |
---|---|
MissingValuesAreBridged | |
MissingValuesHideSegments | |
MissingValuesShownAsZero | |
MissingValuesPolicyIgnored |
Definition at line 55 of file KDChartLineAttributes.h.
LineAttributes::LineAttributes | ( | ) |
Definition at line 56 of file KDChartLineAttributes.cpp.
LineAttributes::LineAttributes | ( | const LineAttributes & | r | ) |
Definition at line 61 of file KDChartLineAttributes.cpp.
LineAttributes::~LineAttributes | ( | ) |
Definition at line 76 of file KDChartLineAttributes.cpp.
int LineAttributes::areaBoundingDataset | ( | ) | const |
Definition at line 127 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
bool LineAttributes::displayArea | ( | ) | const |
Definition at line 105 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
LineAttributes::MissingValuesPolicy LineAttributes::missingValuesPolicy | ( | ) | const |
bool KDChart::LineAttributes::operator!= | ( | const LineAttributes & | other | ) | const |
Definition at line 88 of file KDChartLineAttributes.h.
References KDCHART_DECLARE_PRIVATE_BASE_VALUE, KDCHART_DECLARE_SWAP_SPECIALISATION, KDChart::operator<<(), KDGantt::operator==(), and Q_DECLARE_TYPEINFO().
LineAttributes & LineAttributes::operator= | ( | const LineAttributes & | r | ) |
Definition at line 66 of file KDChartLineAttributes.cpp.
References d.
bool LineAttributes::operator== | ( | const LineAttributes & | r | ) | const |
Definition at line 81 of file KDChartLineAttributes.cpp.
References areaBoundingDataset(), displayArea(), missingValuesPolicy(), and transparency().
void LineAttributes::setAreaBoundingDataset | ( | int | dataset | ) |
Sets the lower or upper (depending on the displayed value being positive or negative, resp.) bounding line (i.e., the dataset with the line data).
The area is then drawn between this line and the line of the specified dataset. Pass -1 to draw the area between this line and the zero line.
Definition at line 122 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setDisplayArea | ( | bool | display | ) |
Definition at line 100 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setMissingValuesPolicy | ( | MissingValuesPolicy | policy | ) |
Definition at line 90 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setTransparency | ( | uint | alpha | ) |
Definition at line 110 of file KDChartLineAttributes.cpp.
References d.
uint LineAttributes::transparency | ( | ) | const |
Definition at line 117 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().