KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDChart::ValueTrackerAttributes Class Reference

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

#include <KDChartValueTrackerAttributes>

Public Member Functions

 ValueTrackerAttributes ()
 
 ValueTrackerAttributes (const ValueTrackerAttributes &)
 
 ~ValueTrackerAttributes ()
 
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)
 
void setArrowBrush (const QBrush &brush)
 
void setEnabled (bool enabled)
 
void setLinePen (const QPen &pen)
 
void setMarkerBrush (const QBrush &brush)
 
void setMarkerPen (const QPen &pen)
 
void setMarkerSize (const QSizeF &size)
 
void setOrientations (Qt::Orientations orientations)
 
void setPen (const QPen &pen)
 

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 30 of file KDChartValueTrackerAttributes.h.

Constructor & Destructor Documentation

◆ ValueTrackerAttributes() [1/2]

ValueTrackerAttributes::ValueTrackerAttributes ( )

Definition at line 50 of file KDChartValueTrackerAttributes.cpp.

◆ ValueTrackerAttributes() [2/2]

ValueTrackerAttributes::ValueTrackerAttributes ( const ValueTrackerAttributes r)

Definition at line 55 of file KDChartValueTrackerAttributes.cpp.

◆ ~ValueTrackerAttributes()

ValueTrackerAttributes::~ValueTrackerAttributes ( )

Definition at line 70 of file KDChartValueTrackerAttributes.cpp.

Member Function Documentation

◆ areaBrush()

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

Definition at line 139 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator==().

◆ arrowBrush()

QBrush ValueTrackerAttributes::arrowBrush ( ) const

Definition at line 129 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ isEnabled()

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

Definition at line 169 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ linePen()

QPen ValueTrackerAttributes::linePen ( ) const

Definition at line 99 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and setPen().

◆ markerBrush()

QBrush ValueTrackerAttributes::markerBrush ( ) const

Definition at line 119 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ markerPen()

QPen ValueTrackerAttributes::markerPen ( ) const

Definition at line 109 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ markerSize()

QSizeF ValueTrackerAttributes::markerSize ( ) const
Returns
The size of the markers

Definition at line 149 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ operator!=()

bool KDChart::ValueTrackerAttributes::operator!= ( const ValueTrackerAttributes other) const
inline

Definition at line 107 of file KDChartValueTrackerAttributes.h.

References KDChart::operator==().

◆ operator=()

ValueTrackerAttributes & ValueTrackerAttributes::operator= ( const ValueTrackerAttributes r)

Definition at line 60 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ operator==()

bool ValueTrackerAttributes::operator== ( const ValueTrackerAttributes r) const

◆ orientations()

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 154 of file KDChartValueTrackerAttributes.cpp.

References d.

Referenced by setOrientations().

◆ pen()

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

Definition at line 89 of file KDChartValueTrackerAttributes.cpp.

References d.

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

◆ setAreaBrush()

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 134 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ setArrowBrush()

void ValueTrackerAttributes::setArrowBrush ( const QBrush brush)

Definition at line 124 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ setEnabled()

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 164 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ setLinePen()

void ValueTrackerAttributes::setLinePen ( const QPen pen)

Definition at line 94 of file KDChartValueTrackerAttributes.cpp.

References d, and pen().

◆ setMarkerBrush()

void ValueTrackerAttributes::setMarkerBrush ( const QBrush brush)

Definition at line 114 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ setMarkerPen()

void ValueTrackerAttributes::setMarkerPen ( const QPen pen)

Definition at line 104 of file KDChartValueTrackerAttributes.cpp.

References d, and pen().

◆ setMarkerSize()

void ValueTrackerAttributes::setMarkerSize ( const QSizeF size)

Set the size of the markers. This includes both the arrows at the axes and the circle at the data point.

Parameters
sizeThe size of the markers

Definition at line 144 of file KDChartValueTrackerAttributes.cpp.

References d.

◆ setOrientations()

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 159 of file KDChartValueTrackerAttributes.cpp.

References d, and orientations().

◆ setPen()

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 81 of file KDChartValueTrackerAttributes.cpp.

References QPen::color(), d, linePen(), and pen().


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

© 2001 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/
Generated on Thu Apr 11 2024 00:04:51 for KD Chart API Documentation by doxygen 1.9.8