KDChart::StockBarAttributes Class Reference

#include <KDChartStockBarAttributes.h>

Collaboration diagram for KDChart::StockBarAttributes:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Definition at line 37 of file KDChartStockBarAttributes.h.


Public Member Functions

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

bool operator!= (const StockBarAttributes &other) const
StockBarAttributesoperator= (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
 
Returns:
the tick length used for both the open and close marker

 ~StockBarAttributes ()

Constructor & Destructor Documentation

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 (  ) 

Definition at line 66 of file KDChartStockBarAttributes.cpp.

00067 {
00068     delete _d;
00069 }


Member Function Documentation

qreal StockBarAttributes::candlestickWidth (  )  const

Returns:
the width of a candlestick

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.

Parameters:
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.

Parameters:
length the tick length

Definition at line 93 of file KDChartStockBarAttributes.cpp.

References d.

00094 {
00095     d->tickLength = length;
00096 }

qreal StockBarAttributes::tickLength (  )  const

Returns:
the tick length used for both the open and close marker

Definition at line 101 of file KDChartStockBarAttributes.cpp.

References d.

Referenced by StockDiagram::Private::drawOHLCBar(), and operator==().

00102 {
00103     return d->tickLength;
00104 }


The documentation for this class was generated from the following files:
Generated on Thu Mar 4 23:26:34 2010 for KD Chart 2 by  doxygen 1.5.4