![]() |
KD Chart API Documentation
3.1
|
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 | |
LineAttributes () | |
LineAttributes (const LineAttributes &) | |
~LineAttributes () | |
int | areaBoundingDataset () const |
bool | displayArea () const |
MissingValuesPolicy | missingValuesPolicy () const |
bool | operator!= (const LineAttributes &other) const |
LineAttributes & | operator= (const LineAttributes &) |
bool | operator== (const LineAttributes &) const |
void | setAreaBoundingDataset (int dataset) |
void | setDisplayArea (bool display) |
void | setMissingValuesPolicy (MissingValuesPolicy policy) |
void | setTransparency (uint alpha) |
uint | transparency () const |
Set of attributes for changing the appearance of line charts.
Definition at line 22 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 43 of file KDChartLineAttributes.h.
LineAttributes::LineAttributes | ( | ) |
Definition at line 39 of file KDChartLineAttributes.cpp.
LineAttributes::LineAttributes | ( | const LineAttributes & | r | ) |
Definition at line 44 of file KDChartLineAttributes.cpp.
LineAttributes::~LineAttributes | ( | ) |
Definition at line 59 of file KDChartLineAttributes.cpp.
int LineAttributes::areaBoundingDataset | ( | ) | const |
Definition at line 107 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
bool LineAttributes::displayArea | ( | ) | const |
Definition at line 85 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
LineAttributes::MissingValuesPolicy LineAttributes::missingValuesPolicy | ( | ) | const |
|
inline |
Definition at line 78 of file KDChartLineAttributes.h.
References KDChart::operator==().
LineAttributes & LineAttributes::operator= | ( | const LineAttributes & | r | ) |
Definition at line 49 of file KDChartLineAttributes.cpp.
References d.
bool LineAttributes::operator== | ( | const LineAttributes & | r | ) | const |
Definition at line 65 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 102 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setDisplayArea | ( | bool | display | ) |
Definition at line 80 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setMissingValuesPolicy | ( | MissingValuesPolicy | policy | ) |
Definition at line 70 of file KDChartLineAttributes.cpp.
References d.
void LineAttributes::setTransparency | ( | uint | alpha | ) |
Definition at line 90 of file KDChartLineAttributes.cpp.
References d.
uint LineAttributes::transparency | ( | ) | const |
Definition at line 97 of file KDChartLineAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().