|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMatrixDataset
Title: IJChart
Description: a chart library for the Java(tm) platform.
The dataset is a two-dimensional matrix, each point in the matrix is (@Link IChartData) object. Matrix of each row of a corresponding RowKey,each column of a corresponding ColKey.The data form is:ColKey1 | ColKey2 | ColKey3 | |
RowKey1 | ChartData11 | ChartData12 | ChartData13 |
RowKey2 | ChartData21 | ChartData22 | ChartData23 |
RowKey3 | ChartData31 | ChartData32 | ChartData33 |
Copyright: Copyright (c) 2013
Company:
Method Summary | |
---|---|
java.lang.Object |
getColKey(int index)
Get ColKey by index.The first ColKey of the dataset is at index 0,the next at index 1, and so on, as for array indexing. |
int |
getColumnCount()
The column count of this dataset. |
int |
getColumnCount(int rowIdx)
The column count of this dataset. |
IChartData |
getData(int rowIndex,
int colIndex)
Get the data of matrix by rowIndex and colIndex,an Exception will be throw when index out of bound. |
int |
getRowCount()
The row count of this dataset. |
java.lang.Object |
getRowKey(int index)
Get RowKey by index.The first RowKey of the dataset is at index 0,the next at index 1, and so on, as for array indexing. |
boolean |
isEmpty()
Returns whether or not the dataset is empty. |
void |
sortRowData(int rowIndex,
SortType sortType)
Sort the datas of a dataset row. |
Methods inherited from interface com.ijchart.xychart.dataset.IDataset |
---|
addChangeListener, forceDataSetChanged, isThisDataType, removeAllChangeListener, removeChangeListener |
Method Detail |
---|
int getRowCount()
java.lang.Object getRowKey(int index)
index
- int
The row index,first is 0,next is 1.
int getColumnCount()
int getColumnCount(int rowIdx)
rowIdx
- int
The row index.
java.lang.Object getColKey(int index)
index
- int
The index,first is 0,next is 1.
IChartData getData(int rowIndex, int colIndex)
rowIndex
- int
The row index.The first is at index 0,the next is at 1, and so on.colIndex
- int
The column index.The first is at index 0,the next is at 1, and so on.
boolean isEmpty()
void sortRowData(int rowIndex, SortType sortType)
rowIndex
- int
The row index.The first is at index 0,the next is at 1, and so on.sortType
- SortType
The sort type,ascending or descending.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |