com.klg.jclass.chart
Interface EditableChartDataModel
- All Superinterfaces:
- ChartDataModel
- All Known Implementing Classes:
- JCChartSwingDataSource, JCEditableDataSource
- public interface EditableChartDataModel
- extends ChartDataModel
Extends the ChartDataModel
interface to allow modification of data
points in the data source.
Note: The EditableChartDataModel
interface allows modification of y value data.
Method Summary |
boolean |
setDataItem(int seriesIndex,
int pointIndex,
double newValue)
Changes the specified y data value. |
setDataItem
public boolean setDataItem(int seriesIndex,
int pointIndex,
double newValue)
- Changes the specified y data value.
- Parameters:
seriesIndex
- series index for the point to be changedpointIndex
- point index for the point to be changednewValue
- new y value for the specified point
- Returns:
- boolean value indicating whether the new value was
accepted;
true
means value was accepted