KD Chart 2  [rev.2.7]
Public Member Functions | List of all members
KDChart::ValueTrackerAttributes Class Reference

Cell-specific attributes regarding value tracking. More...

#include <KDChartValueTrackerAttributes>

Public Member Functions

QBrush areaBrush () const
 
QBrush arrowBrush () const
 
bool isEnabled () const
 
QPen linePen () const
 
QBrush markerBrush () const
 
QPen markerPen () const
 
QSizeF markerSize () const
 
bool operator!= (const ValueTrackerAttributes &other) const
 
ValueTrackerAttributesoperator= (const ValueTrackerAttributes &)
 
bool operator== (const ValueTrackerAttributes &) const
 
Qt::Orientations orientations () const
 
QPen pen () const
 
void setAreaBrush (const QBrush &brush)
 Set the brush the area below the value tracking lines should be filled with. More...
 
void setArrowBrush (const QBrush &brush)
 
void setEnabled (bool enabled)
 Set whether value tracking should be enabled for a specific index or not. More...
 
void setLinePen (const QPen &pen)
 
void setMarkerBrush (const QBrush &brush)
 
void setMarkerPen (const QPen &pen)
 
void setMarkerSize (const QSizeF &size)
 Set the size of the markers. More...
 
void setOrientations (Qt::Orientations orientations)
 Set the orientations used to show the value tracking. More...
 
void setPen (const QPen &pen)
 Set the pen the value tracking lines and markers will be drawn with. More...
 
 ValueTrackerAttributes ()
 
 ValueTrackerAttributes (const ValueTrackerAttributes &)
 
 ~ValueTrackerAttributes ()
 

Detailed Description

Cell-specific attributes regarding value tracking.

ValueTrackerAttributes groups the properties regarding value tracking, and how it is displayed. Value tracking can be used to emphasize on one or several specific points in a line diagram.

Definition at line 42 of file KDChartValueTrackerAttributes.h.

Constructor & Destructor Documentation

ValueTrackerAttributes::ValueTrackerAttributes ( )

Definition at line 62 of file KDChartValueTrackerAttributes.cpp.

ValueTrackerAttributes::ValueTrackerAttributes ( const ValueTrackerAttributes r)

Definition at line 67 of file KDChartValueTrackerAttributes.cpp.

ValueTrackerAttributes::~ValueTrackerAttributes ( )

Definition at line 82 of file KDChartValueTrackerAttributes.cpp.

Member Function Documentation

QBrush ValueTrackerAttributes::areaBrush ( ) const
Returns
The brush the area below the value tracking lines is filled with

Definition at line 157 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator==(), and KDChart::PaintingHelpers::paintValueTracker().

QBrush ValueTrackerAttributes::arrowBrush ( ) const
bool ValueTrackerAttributes::isEnabled ( ) const
Returns
Whether value tracking is enabled or not

Definition at line 187 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::PaintingHelpers::paintElements().

QPen ValueTrackerAttributes::linePen ( ) const
QBrush ValueTrackerAttributes::markerBrush ( ) const
QPen ValueTrackerAttributes::markerPen ( ) const
QSizeF ValueTrackerAttributes::markerSize ( ) const
Returns
The size of the markers

Definition at line 167 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::PaintingHelpers::paintValueTracker().

bool KDChart::ValueTrackerAttributes::operator!= ( const ValueTrackerAttributes other) const
ValueTrackerAttributes & ValueTrackerAttributes::operator= ( const ValueTrackerAttributes r)

Definition at line 72 of file KDChartValueTrackerAttributes.cpp.

References d.

bool ValueTrackerAttributes::operator== ( const ValueTrackerAttributes r) const
Qt::Orientations ValueTrackerAttributes::orientations ( ) const
Returns
The orientations used to show the value tracking. Using only a vertical line, horizontal line or both (the default).

Definition at line 172 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by KDChart::PaintingHelpers::paintValueTracker(), and setOrientations().

QPen ValueTrackerAttributes::pen ( ) const
Returns
The pen the lines and markers are drawn with

Definition at line 107 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by setLinePen(), setMarkerPen(), and setPen().

void ValueTrackerAttributes::setAreaBrush ( const QBrush &  brush)

Set the brush the area below the value tracking lines should be filled with.

Default is a black brush with the style Qt::NoBrush.

Parameters
brushThe brush the area should be filled with

Definition at line 152 of file KDChartValueTrackerAttributes.cpp.

References d.

void ValueTrackerAttributes::setArrowBrush ( const QBrush &  brush)

Definition at line 142 of file KDChartValueTrackerAttributes.cpp.

References d.

void ValueTrackerAttributes::setEnabled ( bool  enabled)

Set whether value tracking should be enabled for a specific index or not.

Parameters
enabledWhether value tracking should be enabled or not

Definition at line 182 of file KDChartValueTrackerAttributes.cpp.

References d.

void ValueTrackerAttributes::setLinePen ( const QPen &  pen)

Definition at line 112 of file KDChartValueTrackerAttributes.cpp.

References d, and pen().

void ValueTrackerAttributes::setMarkerBrush ( const QBrush &  brush)

Definition at line 132 of file KDChartValueTrackerAttributes.cpp.

References d.

void ValueTrackerAttributes::setMarkerPen ( const QPen &  pen)

Definition at line 122 of file KDChartValueTrackerAttributes.cpp.

References d, and pen().

void ValueTrackerAttributes::setMarkerSize ( const QSizeF &  size)

Set the size of the markers.

This includes both the arrows at the axises and the circle at the data point.

Parameters
sizeThe size of the markers

Definition at line 162 of file KDChartValueTrackerAttributes.cpp.

References d.

void ValueTrackerAttributes::setOrientations ( Qt::Orientations  orientations)

Set the orientations used to show the value tracking.

Parameters
orientationsThe orientations of the value tracking lines.

Definition at line 177 of file KDChartValueTrackerAttributes.cpp.

References d, and orientations().

void ValueTrackerAttributes::setPen ( const QPen &  pen)

Set the pen the value tracking lines and markers will be drawn with.

Parameters
penThe pen the lines and markers will be drawn with

Definition at line 99 of file KDChartValueTrackerAttributes.cpp.

References d, and pen().


The documentation for this class was generated from the following files:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/