OpenAPI 1.0

com.aquafold.openapi.chart
Interface AQDataSource


public interface AQDataSource

DataSource

Synopsis:

A DataSource provides series and category values to a ChartModel.

Description:

A DataSource is used by a ChartModel to reference externally-generated data sets.

The two primary procedures for adding data to a ChartModel are: Adding series and category values directly to the ChartModel using the addSeries(), addCategory(), and setValue() methods. OR Setting the ChartModel's datasource and selecting series and category fields from that datasource using the addSeriesField() and addCategoryField() methods.

The most common DataSource is a DataSet obtained from a database query (for example, using the Connection.executeSnapshot() method). Another DataSource is the PivotDataSet, which can be created from a DataSet.


Method Summary
 int getColumnCount()
          Get the number of columns in the datasource.
 String getColumnName(int columnNumber)
          Get the name of the specified column in the datasource.
 int getRowCount()
          Get the number of rows in the datasource.
 Object getValueAt(int rowNumber, int columnNumber)
          Get the value at the specified row and column in the datasource.
 

Method Detail

getRowCount

int getRowCount()
Get the number of rows in the datasource.

Returns:
Number of rows

getColumnCount

int getColumnCount()
Get the number of columns in the datasource.

Returns:
Number of columns

getColumnName

String getColumnName(int columnNumber)
Get the name of the specified column in the datasource.

Parameters:
columnNumber - Zero-based index of column
Returns:
Name of column specified by Zero-based index

getValueAt

Object getValueAt(int rowNumber,
                  int columnNumber)
Get the value at the specified row and column in the datasource.

Parameters:
rowNumber - Zero-based index of row
columnNumber - Zero-based index of column
Returns:
Value at the specified row and column

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.