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

Attributes to customize the appearance of a column in a stock chart. More...

#include <KDChartStockBarAttributes.h>

Public Member Functions

qreal candlestickWidth () const
 
bool operator!= (const StockBarAttributes &other) const
 
StockBarAttributesoperator= (const StockBarAttributes &)
 
bool operator== (const StockBarAttributes &) const
 
void setCandlestickWidth (qreal width)
 Sets the width of a candlestick. More...
 
void setTickLength (qreal length)
 Sets the tick length of both the open and close marker. More...
 
 StockBarAttributes ()
 
 StockBarAttributes (const StockBarAttributes &)
 
qreal tickLength () const
 
 ~StockBarAttributes ()
 

Detailed Description

Attributes to customize the appearance of a column in a stock chart.

Definition at line 34 of file KDChartStockBarAttributes.h.

Constructor & Destructor Documentation

StockBarAttributes::StockBarAttributes ( )

Definition at line 43 of file KDChartStockBarAttributes.cpp.

StockBarAttributes::StockBarAttributes ( const StockBarAttributes r)

Definition at line 48 of file KDChartStockBarAttributes.cpp.

StockBarAttributes::~StockBarAttributes ( )

Definition at line 63 of file KDChartStockBarAttributes.cpp.

Member Function Documentation

qreal StockBarAttributes::candlestickWidth ( ) const
Returns
the width of a candlestick

Definition at line 80 of file KDChartStockBarAttributes.cpp.

References d.

Referenced by operator==().

bool KDChart::StockBarAttributes::operator!= ( const StockBarAttributes other) const

Definition at line 50 of file KDChartStockBarAttributes.h.

References KDGantt::operator==().

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

Definition at line 53 of file KDChartStockBarAttributes.cpp.

References d.

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

Definition at line 103 of file KDChartStockBarAttributes.cpp.

References candlestickWidth(), and tickLength().

void StockBarAttributes::setCandlestickWidth ( qreal  width)

Sets the width of a candlestick.

Parameters
widthThe width of a candlestick

Definition at line 73 of file KDChartStockBarAttributes.cpp.

References d.

void StockBarAttributes::setTickLength ( qreal  length)

Sets the tick length of both the open and close marker.

Parameters
lengththe tick length

Definition at line 90 of file KDChartStockBarAttributes.cpp.

References d.

qreal StockBarAttributes::tickLength ( ) const
Returns
the tick length used for both the open and close marker

Definition at line 98 of file KDChartStockBarAttributes.cpp.

References d.

Referenced by operator==().


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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
https://www.kdab.com/
https://www.kdab.com/products/kd-chart/