Base data model for the chart control.
IChartModel and DefaultChartModel
Method |
Description |
Argument |
Return value |
firstRow |
Sets the pointer of the actual row to first row in the model and returns the number of the first row. |
() |
int |
getColor |
Returns the color value of the current row. |
() |
java.lang.String |
getExtension |
Returns the extension value of the current row. The extension is a text string that is displayed as tooltip when you move the mouse cursor over the chart element. It shows effect on bar and pie charts, but no effect on line charts. |
() |
java.lang.String |
getFieldName |
Returns the field name of the actual row and the specified column. |
(int col) |
java.lang.String |
getFieldValue |
Returns the field value of the actual row and the specified column. |
(int col) |
java.lang.String |
getGroupId |
Returns the group id of the actual row. |
() |
java.lang.String |
getNumColumns |
Returns the number of columns in the model. |
() |
int |
getNumRows |
Returns the number of rows in the model. |
() |
int |
getRow |
Returns the row position of the pointer (actual row). |
() |
int |
getX |
Returns the X value of the actual row. |
() |
java.lang.String |
getY |
Returns the Y value of the actual row. |
() |
java.lang.String |
nextRow |
Sets the pointer to the next row in the model. If the point has reached the end of the model the method returns false. |
() |
boolean |
JCOChartModel (Methods in addition to the IChartModel/DefaultChartModel)
Method |
Description |
Argument |
setDataSrc |
Sets a JCO data table into this model. |
(com.sap.mw.jco.JCO. |
VectorChartModel (Methods in addition to the IChartModel/DefaultChartModel)
Method |
Description |
Argument |
addItem |
Adds an entry with extension to the model. The extension is a text string that is displayed as tooltip when you move the mouse cursor over the chart element. It shows effect on bar and pie charts, but no effect on line charts. If you use a pie chart to display the data, the X values will be used. |
(java.lang.String groupid, |
addItem |
Adds an entry with an URL and an alternate text to the model. The alternate text is a text string that is displayed as tooltip when you move the mouse cursor over the chart element. URL and alternate text show effect on bar and pie charts, but no effect on line charts. If you use a pie chart to display the data, the X values will be used. |
(java.lang.String groupid, |
Setting up the VectorChartModel
// create model |
Setting up the JCOChartModel
// create a new JCO table |