/** * Updates a z-value in the dataset and, if requested, sends a * {@link DatasetChangeEvent} to all registered listeners. * * @param xIndex the x-index. * @param yIndex the y-index. * @param z the new z-value. * @param notify notify listeners? */ public void setZValue(int xIndex, int yIndex, double z, boolean notify) { this.zValues[xIndex][yIndex] = z; if (notify) { fireDatasetChanged(); } }
/** * Updates a z-value in the dataset and, if requested, sends a * {@link DatasetChangeEvent} to all registered listeners. * * @param xIndex the x-index. * @param yIndex the y-index. * @param z the new z-value. * @param notify notify listeners? */ public void setZValue(int xIndex, int yIndex, double z, boolean notify) { this.zValues[xIndex][yIndex] = z; if (notify) { fireDatasetChanged(); } }