#include <KDChartStockBarAttributes.h>
Definition at line 37 of file KDChartStockBarAttributes.h.
Public Member Functions | |
qreal | candlestickWidth () const |
| |
bool | operator!= (const StockBarAttributes &other) const |
StockBarAttributes & | operator= (const StockBarAttributes &) |
bool | operator== (const StockBarAttributes &) const |
void | setCandlestickWidth (qreal width) |
Sets the width of a candlestick. | |
void | setTickLength (qreal length) |
Sets the tick length of both the open and close marker. | |
StockBarAttributes (const StockBarAttributes &) | |
StockBarAttributes () | |
qreal | tickLength () const |
| |
~StockBarAttributes () |
StockBarAttributes::StockBarAttributes | ( | ) |
Definition at line 46 of file KDChartStockBarAttributes.cpp.
00047 : _d( new Private ) 00048 { 00049 }
StockBarAttributes::StockBarAttributes | ( | const StockBarAttributes & | r | ) |
Definition at line 51 of file KDChartStockBarAttributes.cpp.
00052 : _d( new Private( *r.d ) ) 00053 { 00054 }
StockBarAttributes::~StockBarAttributes | ( | ) |
qreal StockBarAttributes::candlestickWidth | ( | ) | const |
Definition at line 83 of file KDChartStockBarAttributes.cpp.
References d.
Referenced by StockDiagram::Private::drawCandlestick(), and operator==().
00084 { 00085 return d->candlestickWidth; 00086 }
bool KDChart::StockBarAttributes::operator!= | ( | const StockBarAttributes & | other | ) | const |
Definition at line 53 of file KDChartStockBarAttributes.h.
References KDGantt::operator==().
00053 { return !operator==(other); }
StockBarAttributes & StockBarAttributes::operator= | ( | const StockBarAttributes & | r | ) |
Definition at line 56 of file KDChartStockBarAttributes.cpp.
References d.
00057 { 00058 if ( this == &r ) 00059 return *this; 00060 00061 *d = *r.d; 00062 00063 return *this; 00064 }
bool StockBarAttributes::operator== | ( | const StockBarAttributes & | r | ) | const |
Definition at line 106 of file KDChartStockBarAttributes.cpp.
References candlestickWidth(), and tickLength().
00107 { 00108 return candlestickWidth() == r.candlestickWidth() && 00109 tickLength() == r.tickLength(); 00110 }
void StockBarAttributes::setCandlestickWidth | ( | qreal | width | ) |
Sets the width of a candlestick.
width | The width of a candlestick |
Definition at line 76 of file KDChartStockBarAttributes.cpp.
References d.
00077 { 00078 d->candlestickWidth = width; 00079 }
void StockBarAttributes::setTickLength | ( | qreal | length | ) |
Sets the tick length of both the open and close marker.
length | the tick length |
Definition at line 93 of file KDChartStockBarAttributes.cpp.
References d.
00094 { 00095 d->tickLength = length; 00096 }
qreal StockBarAttributes::tickLength | ( | ) | const |
Definition at line 101 of file KDChartStockBarAttributes.cpp.
References d.
Referenced by StockDiagram::Private::drawOHLCBar(), and operator==().
00102 { 00103 return d->tickLength; 00104 }