KChart::ValueTrackerAttributes

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 39 of file KChartValueTrackerAttributes.h.

Member Function Documentation

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

Definition at line 154 of file KChartValueTrackerAttributes.cpp.

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

Definition at line 184 of file KChartValueTrackerAttributes.cpp.

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

Definition at line 164 of file KChartValueTrackerAttributes.cpp.

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

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

Definition at line 104 of file KChartValueTrackerAttributes.cpp.

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

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

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

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

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 96 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-2020 The KDE developers.
Generated on Sat Oct 24 2020 22:42:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.