org.xwiki.chart.model
Interface ChartModel

All Known Implementing Classes:
DefaultChartModel

public interface ChartModel

Interface defining the input for the chart generator.

Since:
2.0M1
Version:
$Id$

Method Summary
 Number getCellValue(int rowIndex, int columnIndex)
          Returns the specified cell value.
 int getColumnCount()
          Number of data columns.
 String getColumnHeader(int columnIndex)
          Returns the label for the specified data column.
 int getRowCount()
          Number of data rows.
 String getRowHeader(int rowIndex)
          Returns the label for the specified data row.
 

Method Detail

getRowCount

int getRowCount()
Number of data rows.

Returns:
number of data rows present in this model.

getColumnCount

int getColumnCount()
Number of data columns.

Returns:
number of data columns present in this model.

getCellValue

Number getCellValue(int rowIndex,
                    int columnIndex)
Returns the specified cell value.

Parameters:
rowIndex - row index.
columnIndex - column index.
Returns:
cell value.

getRowHeader

String getRowHeader(int rowIndex)
Returns the label for the specified data row.

Parameters:
rowIndex - row index.
Returns:
the label for the specified data row.

getColumnHeader

String getColumnHeader(int columnIndex)
Returns the label for the specified data column.

Parameters:
columnIndex - column index.
Returns:
the label for the specified data column.


Copyright © 2004-2012 XWiki. All Rights Reserved.