KDChartSeriesCollection Class Reference

#include <KDChartSeriesCollection.h>

Inheritance diagram for KDChartSeriesCollection:

KDChartTableDataBase QArray QObject
Collaboration diagram for KDChartSeriesCollection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KDChartSeriesCollection (KDChartParams *params)
virtual ~KDChartSeriesCollection ()
virtual uint rows () const
virtual uint cols () const
virtual void setUsedRows (uint _rows)
virtual uint usedRows () const
virtual void setUsedCols (uint _cols)
virtual uint usedCols () const
virtual void setCell (uint _row, uint _col, const KDChartData &_element)
virtual const KDChartDatacell (uint _row, uint _col) const
virtual void expand (uint _rows, uint _cols)
virtual double minValue (int coordinate=1) const
virtual double maxValue (int coordinate=1) const
virtual void setLegendText (KDChartBaseSeries *series, QString text)
virtual QString legendText (KDChartBaseSeries *series)
virtual void setYaxis (KDChartBaseSeries *series, KDChartAxisParams::AxisPos axis)
virtual KDChartAxisParams::AxisPos yAxis (KDChartBaseSeries *series)
virtual unsigned int indexOf (KDChartBaseSeries *series)

Protected Attributes

KDChartData _blank
KDChartParams_params


Constructor & Destructor Documentation

KDChartSeriesCollection::KDChartSeriesCollection ( KDChartParams params  ) 

virtual KDChartSeriesCollection::~KDChartSeriesCollection (  )  [virtual]


Member Function Documentation

virtual uint KDChartSeriesCollection::rows (  )  const [virtual]

Returns the number of rows in the table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Returns:
the number of rows in the table.
See also:
setRows, usedRows, cols

Implements KDChartTableDataBase.

virtual uint KDChartSeriesCollection::cols (  )  const [virtual]

Returns the number of cols in the table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Returns:
the number of cols in the table.
See also:
setCols, usedCols, rows

Implements KDChartTableDataBase.

virtual void KDChartSeriesCollection::setUsedRows ( uint  _rows  )  [virtual]

Sets the number of rows in the table that actually contain data.

Note:
You might want to re-implement this function in derived classes, the default implementation just stores the new number of used rows.
Parameters:
_rows the number of rows in the table that actually contain data.
See also:
usedRows, rows, cols

Reimplemented from KDChartTableDataBase.

virtual uint KDChartSeriesCollection::usedRows (  )  const [virtual]

Returns the number of rows in the table that actually contain data.

Returns:
the number of rows in the table that actually contain data.
See also:
setUsedRows, rows, cols

Reimplemented from KDChartTableDataBase.

virtual void KDChartSeriesCollection::setUsedCols ( uint  _cols  )  [virtual]

Sets the number of cols in the table that actually contain data.

Note:
You might want to re-implement this function in derived classes, the default implementation just stores the new number of used cols.
Parameters:
_cols the number of cols in the table that actually contain data.
See also:
usedCols, rows, cols

Reimplemented from KDChartTableDataBase.

virtual uint KDChartSeriesCollection::usedCols (  )  const [virtual]

Returns the number of cols in the table that actually contain data.

Returns:
the number of cols in the table that actually contain data.
See also:
setUsedCols, rows, cols

Reimplemented from KDChartTableDataBase.

virtual void KDChartSeriesCollection::setCell ( uint  _row,
uint  _col,
const KDChartData _element 
) [virtual]

virtual const KDChartData& KDChartSeriesCollection::cell ( uint  _row,
uint  _col 
) const [virtual]

virtual void KDChartSeriesCollection::expand ( uint  _rows,
uint  _cols 
) [virtual]

Increases the number of rows (and/or columns, resp.) stored in this table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.

The old content of the table must be preserved (e.g. by copying the data into the cells of the new table).

Parameters:
_row the new number of rows.
_col the new number of columns.
See also:
cell

Implements KDChartTableDataBase.

virtual double KDChartSeriesCollection::minValue ( int  coordinate = 1  )  const [virtual]

virtual double KDChartSeriesCollection::maxValue ( int  coordinate = 1  )  const [virtual]

Reimplemented from KDChartTableDataBase.

virtual void KDChartSeriesCollection::setLegendText ( KDChartBaseSeries series,
QString  text 
) [virtual]

virtual QString KDChartSeriesCollection::legendText ( KDChartBaseSeries series  )  [virtual]

virtual void KDChartSeriesCollection::setYaxis ( KDChartBaseSeries series,
KDChartAxisParams::AxisPos  axis 
) [virtual]

virtual KDChartAxisParams::AxisPos KDChartSeriesCollection::yAxis ( KDChartBaseSeries series  )  [virtual]

virtual unsigned int KDChartSeriesCollection::indexOf ( KDChartBaseSeries series  )  [virtual]


Member Data Documentation


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

Generated on Wed Jan 26 13:06:52 2011 for KMyMoney by  doxygen 1.5.6