|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChartData
The interface which defines the API for access into data used for charting.
Method Summary | |
---|---|
int |
findColumn(String columnName)
Returns the 1st column index with the specified name |
int |
findRow(String rowName)
Returns the 1st row number of the row which has the specified row name. |
Object |
getCellMetadata(int rowIndex,
int colIndex,
Object metadataKey)
Retrieves the metadata for the specified cell and key |
Object |
getColMetadata(int colIndex,
Object metadataKey)
Retrieves the metadata for the specified column and key |
Object |
getRowMetadata(int rowIndex,
Object metadataKey)
Retrieves the metadata for the specified row and key |
String |
getRowName(int rowIndex)
Retrieves the name assigned to the specified row |
void |
setCellMetadata(int rowIndex,
int colIndex,
Object metadataKey,
Object metadataValue)
Sets a piece of metadata for the specified cell. |
void |
setColMetadata(int colIndex,
Object metadataKey,
Object metadataValue)
Sets a piece of metadata for the specified column. |
void |
setColumnName(int columnIndex,
String columnName)
Sets the name of the column in the charting data |
void |
setRowMetadata(int rowIndex,
Object metadataKey,
Object metadataValue)
Sets a piece of metadata for the specified row. |
void |
setRowName(int rowIndex,
String rowName)
Sets the name of the row in the charting data |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
---|
void setColumnName(int columnIndex, String columnName)
columnIndex
- the index of the column whose name is being setcolumnName
- the name being assigned to the columnvoid setRowName(int rowIndex, String rowName)
rowIndex
- the index of therowName
- the name being assigned to the rowString getRowName(int rowIndex)
rowIndex
- the index of the whose name should be retrieved
null
if none is assginedvoid setRowMetadata(int rowIndex, Object metadataKey, Object metadataValue)
rowIndex
- the index of the rowmetadataKey
- the key for the metadata being setmetadataValue
- the value of the metadata being set (a value of null
will remove any
existing metadata value for the specified metadataKey for the specified row)void setColMetadata(int colIndex, Object metadataKey, Object metadataValue)
colIndex
- the index of the rowmetadataKey
- the key for the metadata being setmetadataValue
- the value of the metadata being set (a value of null
will remove any
existing metadata value for the specified metadataKey for the specified column)void setCellMetadata(int rowIndex, int colIndex, Object metadataKey, Object metadataValue)
rowIndex
- the row index of the cellcolIndex
- the column index of the cellmetadataKey
- the key for the metadata being setmetadataValue
- the value of the metadata being set (a value of null
will remove any
existing metadata value for the specified metadataKey for the specified cell)Object getRowMetadata(int rowIndex, Object metadataKey)
rowIndex
- the row indexmetadataKey
- the metadata key
null
will be returned.Object getColMetadata(int colIndex, Object metadataKey)
colIndex
- the row indexmetadataKey
- the metadata key
null
will be returned.Object getCellMetadata(int rowIndex, int colIndex, Object metadataKey)
rowIndex
- the row index of the cellcolIndex
- the row index of the cellmetadataKey
- the metadata key
null
will be returned.int findColumn(String columnName)
columnName
- the name of the column
-1
.int findRow(String rowName)
rowName
- the name of the row
-1
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |