KChart::ValueTrackerAttributes

Search for usage in LXR

KChart::ValueTrackerAttributes Class Reference

#include <KChartValueTrackerAttributes>

Public Member Functions

 ValueTrackerAttributes (const 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 28 of file KChartValueTrackerAttributes.h.

Constructor & Destructor Documentation

◆ ValueTrackerAttributes() [1/2]

ValueTrackerAttributes::ValueTrackerAttributes ( )

Definition at line 48 of file KChartValueTrackerAttributes.cpp.

◆ ValueTrackerAttributes() [2/2]

ValueTrackerAttributes::ValueTrackerAttributes ( const ValueTrackerAttributes & r)

Definition at line 53 of file KChartValueTrackerAttributes.cpp.

◆ ~ValueTrackerAttributes()

ValueTrackerAttributes::~ValueTrackerAttributes ( )

Definition at line 68 of file KChartValueTrackerAttributes.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 143 of file KChartValueTrackerAttributes.cpp.

◆ arrowBrush()

QBrush ValueTrackerAttributes::arrowBrush ( ) const

Definition at line 133 of file KChartValueTrackerAttributes.cpp.

◆ isEnabled()

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

Definition at line 173 of file KChartValueTrackerAttributes.cpp.

◆ linePen()

QPen ValueTrackerAttributes::linePen ( ) const

Definition at line 103 of file KChartValueTrackerAttributes.cpp.

◆ markerBrush()

QBrush ValueTrackerAttributes::markerBrush ( ) const

Definition at line 123 of file KChartValueTrackerAttributes.cpp.

◆ markerPen()

QPen ValueTrackerAttributes::markerPen ( ) const

Definition at line 113 of file KChartValueTrackerAttributes.cpp.

◆ markerSize()

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

Definition at line 153 of file KChartValueTrackerAttributes.cpp.

◆ operator!=()

bool KChart::ValueTrackerAttributes::operator!= ( const ValueTrackerAttributes & other) const
inline

Definition at line 105 of file KChartValueTrackerAttributes.h.

◆ operator=()

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

Definition at line 58 of file KChartValueTrackerAttributes.cpp.

◆ operator==()

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

Definition at line 74 of file KChartValueTrackerAttributes.cpp.

◆ 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 158 of file KChartValueTrackerAttributes.cpp.

◆ pen()

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

Definition at line 93 of file KChartValueTrackerAttributes.cpp.

◆ 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 138 of file KChartValueTrackerAttributes.cpp.

◆ setArrowBrush()

void ValueTrackerAttributes::setArrowBrush ( const QBrush & brush)

Definition at line 128 of file KChartValueTrackerAttributes.cpp.

◆ 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 168 of file KChartValueTrackerAttributes.cpp.

◆ setLinePen()

void ValueTrackerAttributes::setLinePen ( const QPen & pen)

Definition at line 98 of file KChartValueTrackerAttributes.cpp.

◆ setMarkerBrush()

void ValueTrackerAttributes::setMarkerBrush ( const QBrush & brush)

Definition at line 118 of file KChartValueTrackerAttributes.cpp.

◆ setMarkerPen()

void ValueTrackerAttributes::setMarkerPen ( const QPen & pen)

Definition at line 108 of file KChartValueTrackerAttributes.cpp.

◆ 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 148 of file KChartValueTrackerAttributes.cpp.

◆ 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 163 of file KChartValueTrackerAttributes.cpp.

◆ 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 85 of file KChartValueTrackerAttributes.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:54:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.