#include <KDChartDataValueAttributes>
The DataValueAttributes group all properties that can be set wrt data value labels and if and how they are displayed. This includes things like the text attributes (font, color), what markers are used, howmany decimal digits are displayed, etc.
Definition at line 59 of file KDChartDataValueAttributes.h.
Public Member Functions | |
BackgroundAttributes | backgroundAttributes () const |
QString | dataLabel () const |
Returns the string displayed instead of the data value label. | |
DataValueAttributes (const DataValueAttributes &) | |
DataValueAttributes () | |
int | decimalDigits () const |
FrameAttributes | frameAttributes () const |
bool | isVisible () const |
MarkerAttributes | markerAttributes () const |
const RelativePosition | negativePosition () const |
Return the relative positioning of the data value labels. | |
bool | operator!= (const DataValueAttributes &other) const |
DataValueAttributes & | operator= (const DataValueAttributes &) |
bool | operator== (const DataValueAttributes &) const |
const RelativePosition | position (bool positive) const |
const RelativePosition | positivePosition () const |
Return the relative positioning of the data value labels. | |
int | powerOfTenDivisor () const |
QString | prefix () const |
Returns the string used as a prefix to the data value text. | |
void | setBackgroundAttributes (const BackgroundAttributes &a) |
Set the background attributes to use for the data value labels area. | |
void | setDataLabel (const QString label) |
display a string label instead of the original data value label | |
void | setDecimalDigits (int digits) |
Set how many decimal digits to display when rendering the data value labels. | |
void | setFrameAttributes (const FrameAttributes &a) |
Set the frame attributes to use for the data value labels area. | |
void | setMarkerAttributes (const MarkerAttributes &a) |
Set the marker attributes to use for the data values. | |
void | setNegativePosition (const RelativePosition &relPosition) |
Defines the relative positioning of the data value labels for negative values. | |
void | setPositivePosition (const RelativePosition &relPosition) |
Defines the relative position of the data value labels for positive values. | |
void | setPowerOfTenDivisor (int powerOfTenDivisor) |
These method are planned for future versions of KD Chart, so they are not part of the documented API yet. | |
void | setPrefix (const QString prefix) |
Prepend a prefix string to the data value label. | |
void | setShowInfinite (bool infinite) |
PLANNED_FOR_FUTURE | |
void | setShowRepetitiveDataLabels (bool showRepetitiveDataLabels) |
Set whether data value labels not different from their predecessors should be drawn. | |
void | setSuffix (const QString suffix) |
Append a suffix string to the data value label. | |
void | setTextAttributes (const TextAttributes &a) |
Set the text attributes to use for the data value labels. | |
void | setVisible (bool visible) |
Set whether data value labels should be displayed. | |
bool | showInfinite () const |
bool | showRepetitiveDataLabels () const |
PLANNED_FOR_FUTURE | |
QString | suffix () const |
Returns the string used as a suffix to the data value text. | |
TextAttributes | textAttributes () const |
~DataValueAttributes () | |
Static Public Member Functions | |
const DataValueAttributes & | defaultAttributes () |
const QVariant & | defaultAttributesAsVariant () |
|
|
|
|
|
|
|
Referenced by operator<<(). |
|
Returns the string displayed instead of the data value label.
Referenced by KDChart::AbstractDiagram::paintDataValueText(). |
|
Referenced by operator<<(), and KDChart::AbstractDiagram::paintDataValueText(). |
|
|
|
|
|
Referenced by operator<<(). |
|
Referenced by operator<<(), KDChart::AbstractDiagram::paintDataValueText(), and KDChart::AbstractDiagram::paintMarker(). |
|
Referenced by KDChart::AbstractDiagram::paintMarker(). |
|
Return the relative positioning of the data value labels.
Referenced by operator<<(). |
|
Definition at line 66 of file KDChartDataValueAttributes.h.
00066 { return !operator==(other); } |
|
|
|
|
|
Definition at line 259 of file KDChartDataValueAttributes.h. Referenced by KDChart::AbstractDiagram::paintDataValueText().
00260 { 00261 return positive ? positivePosition() : negativePosition(); 00262 } |
|
Return the relative positioning of the data value labels.
Referenced by operator<<(). |
|
Referenced by operator<<(). |
|
Returns the string used as a prefix to the data value text.
Referenced by KDChart::AbstractDiagram::paintDataValueText(). |
|
Set the background attributes to use for the data value labels area.
|
|
display a string label instead of the original data value label
|
|
Set how many decimal digits to display when rendering the data value labels. If there are no decimal digits it will not be displayed.
|
|
Set the frame attributes to use for the data value labels area.
|
|
Set the marker attributes to use for the data values. This includes the marker type.
|
|
Defines the relative positioning of the data value labels for negative values. The position is specified in relation to the respective data value point, or in releation to the respective data representation area, that's one area segment in a LineDiagram showing areas, or one bar in a BarDiagram, one pie slice ...
|
|
Defines the relative position of the data value labels for positive values. The position is specified in relation to the respective data value point, or in releation to the respective data representation area, that's one area segment in a LineDiagram showing areas, or one bar in a BarDiagram, one pie slice ...
|
|
These method are planned for future versions of KD Chart, so they are not part of the documented API yet.
|
|
Prepend a prefix string to the data value label.
|
|
PLANNED_FOR_FUTURE These method are planned for future versions of KD Chart, so they are not part of the documented API yet. |
|
Set whether data value labels not different from their predecessors should be drawn.
|
|
Append a suffix string to the data value label.
|
|
Set the text attributes to use for the data value labels.
|
|
Set whether data value labels should be displayed.
|
|
Referenced by operator<<(). |
|
PLANNED_FOR_FUTURE
Referenced by operator<<(), and KDChart::AbstractDiagram::paintDataValueText(). |
|
Returns the string used as a suffix to the data value text.
Referenced by KDChart::AbstractDiagram::paintDataValueText(). |
|
Referenced by operator<<(), and KDChart::AbstractDiagram::paintDataValueText(). |