KChart::LineAttributes
#include <KChartLineAttributes.h>
Public Types | |
enum | MissingValuesPolicy { MissingValuesAreBridged , MissingValuesHideSegments , MissingValuesShownAsZero , MissingValuesPolicyIgnored } |
Public Member Functions | |
LineAttributes (const LineAttributes &) | |
int | areaBoundingDataset () const |
bool | displayArea () const |
bool | isVisible () 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) |
void | setVisible (bool visible) |
uint | transparency () const |
Detailed Description
Set of attributes for changing the appearance of line charts.
Definition at line 20 of file KChartLineAttributes.h.
Member Enumeration Documentation
◆ MissingValuesPolicy
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)
Definition at line 41 of file KChartLineAttributes.h.
Constructor & Destructor Documentation
◆ LineAttributes() [1/2]
LineAttributes::LineAttributes | ( | ) |
Definition at line 45 of file KChartLineAttributes.cpp.
◆ LineAttributes() [2/2]
LineAttributes::LineAttributes | ( | const LineAttributes & | r | ) |
Definition at line 50 of file KChartLineAttributes.cpp.
◆ ~LineAttributes()
LineAttributes::~LineAttributes | ( | ) |
Definition at line 65 of file KChartLineAttributes.cpp.
Member Function Documentation
◆ areaBoundingDataset()
int LineAttributes::areaBoundingDataset | ( | ) | const |
Definition at line 117 of file KChartLineAttributes.cpp.
◆ displayArea()
bool LineAttributes::displayArea | ( | ) | const |
Definition at line 95 of file KChartLineAttributes.cpp.
◆ isVisible()
bool LineAttributes::isVisible | ( | ) | const |
Definition at line 127 of file KChartLineAttributes.cpp.
◆ missingValuesPolicy()
LineAttributes::MissingValuesPolicy LineAttributes::missingValuesPolicy | ( | ) | const |
Definition at line 85 of file KChartLineAttributes.cpp.
◆ operator!=()
|
inline |
Definition at line 86 of file KChartLineAttributes.h.
◆ operator=()
LineAttributes & LineAttributes::operator= | ( | const LineAttributes & | r | ) |
Definition at line 55 of file KChartLineAttributes.cpp.
◆ operator==()
bool LineAttributes::operator== | ( | const LineAttributes & | r | ) | const |
Definition at line 70 of file KChartLineAttributes.cpp.
◆ setAreaBoundingDataset()
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 112 of file KChartLineAttributes.cpp.
◆ setDisplayArea()
void LineAttributes::setDisplayArea | ( | bool | display | ) |
Definition at line 90 of file KChartLineAttributes.cpp.
◆ setMissingValuesPolicy()
void LineAttributes::setMissingValuesPolicy | ( | MissingValuesPolicy | policy | ) |
Definition at line 80 of file KChartLineAttributes.cpp.
◆ setTransparency()
void LineAttributes::setTransparency | ( | uint | alpha | ) |
Definition at line 100 of file KChartLineAttributes.cpp.
◆ setVisible()
void LineAttributes::setVisible | ( | bool | visible | ) |
Determines if lines are to be drawn or not.
This property does not effect visibility of markers and text labels.
This is useful for e.g. bubble charts where you need circular markers but want no connecting lines to be drawn.
By default lines are drawn, i.e. this property is true.
Definition at line 122 of file KChartLineAttributes.cpp.
◆ transparency()
uint LineAttributes::transparency | ( | ) | const |
Definition at line 107 of file KChartLineAttributes.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:57:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.