/** * 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 sends a {@link DatasetChangeEvent} * to all registered listeners. * * @param xIndex the x-index. * @param yIndex the y-index. * @param z the new z-value. */ public void setZValue(int xIndex, int yIndex, double z) { setZValue(xIndex, yIndex, z, true); }
/** * Returns the z-value at the specified sample position in the dataset. * In this implementation, where the underlying values are stored in an * array of double primitives, you should avoid using this method and * use {@link #getZValue(int, int)} instead. * * @param xIndex the position of the x sample in the dataset. * @param yIndex the position of the y sample in the dataset. * * @return The z-value. */ public Number getZ(int xIndex, int yIndex) { return new Double(getZValue(xIndex, yIndex)); }
/** * Returns the z-value at the specified sample position in the dataset. * In this implementation, where the underlying values are stored in an * array of double primitives, you should avoid using this method and * use {@link #getZValue(int, int)} instead. * * @param xIndex the position of the x sample in the dataset. * @param yIndex the position of the y sample in the dataset. * * @return The z-value. */ @Override public Number getZ(int xIndex, int yIndex) { return new Double(getZValue(xIndex, yIndex)); }
/** * Updates a z-value in the dataset and sends a {@link DatasetChangeEvent} * to all registered listeners. * * @param xIndex the x-index. * @param yIndex the y-index. * @param z the new z-value. */ public void setZValue(int xIndex, int yIndex, double z) { setZValue(xIndex, yIndex, z, true); }
/** * 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(); } }