/** * Returns the x-value. * * @return The x-value (never {@code null}). */ public Double getX() { return (Double) getComparable(); }
/** * Adds a data item to the series and sends a {@link SeriesChangeEvent} to * all registered listeners. * * @param x the x-value. * @param y the y-value. * @param yLow the lower bound of the y-interval. * @param yHigh the upper bound of the y-interval. */ public void add(double x, double y, double yLow, double yHigh) { add(new YIntervalDataItem(x, y, yLow, yHigh), true); }
/** * Returns the y-value. * * @return The y-value. */ public double getYValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getY(); } else { return Double.NaN; } }
/** * Returns the y-value for the specified item. * * @param index the item index. * * @return The y-value. */ public double getYValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the x-value for the specified item. * * @param index the item index. * * @return The x-value (never <code>null</code>). */ public Number getX(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getX(); }
/** * Returns the lower bound of the Y-interval for the specified item in the * series. * * @param index the item index. * * @return The lower bound of the Y-interval. * * @since 1.0.5 */ public double getYLowValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYLowValue(); }
/** * Returns the upper bound of the y-interval for the specified item in the * series. * * @param index the item index. * * @return The upper bound of the y-interval. * * @since 1.0.5 */ public double getYHighValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYHighValue(); }
/** * Adds a data item to the series. * * @param x the x-value. * @param y the y-value. * @param yLow the lower bound of the y-interval. * @param yHigh the upper bound of the y-interval. */ public void add(double x, double y, double yLow, double yHigh) { super.add(new YIntervalDataItem(x, y, yLow, yHigh), true); }
/** * Returns the y-value. * * @return The y-value. */ public double getYValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getY(); } else { return Double.NaN; } }
/** * Returns the y-value for the specified item. * * @param index the item index. * * @return The y-value. */ public double getYValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the x-value for the specified item. * * @param index the item index. * * @return The x-value (never {@code null}). */ public Number getX(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getX(); }
/** * Returns the lower bound of the Y-interval for the specified item in the * series. * * @param index the item index. * * @return The lower bound of the Y-interval. * * @since 1.0.5 */ public double getYLowValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYLowValue(); }
/** * Returns the upper bound of the y-interval for the specified item in the * series. * * @param index the item index. * * @return The upper bound of the y-interval. * * @since 1.0.5 */ public double getYHighValue(int index) { YIntervalDataItem item = (YIntervalDataItem) getDataItem(index); return item.getYHighValue(); }
/** * Adds a data item to the series. * * @param x * the x-value. * @param y * the y-value. * @param yLow * the lower bound of the y-interval. * @param yHigh * the upper bound of the y-interval. * @param notify * a flag that controls whether or not a * {@link org.jfree.data.general.SeriesChangeEvent} is sent to all registered * listeners. */ public void add(double x, double y, double yLow, double yHigh, boolean notify) { super.add(new YIntervalDataItem(x, y, yLow, yHigh), notify); }
/** * Returns the lower bound of the y-interval. * * @return The lower bound of the y-interval. */ public double getYLowValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getYLow(); } else { return Double.NaN; } }
/** * Returns the x-value. * * @return The x-value (never <code>null</code>). */ public Double getX() { return (Double) getComparable(); }
/** * Returns the upper bound of the y-interval. * * @return The upper bound of the y-interval. */ public double getYHighValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getYHigh(); } else { return Double.NaN; } }
/** * Returns the lower bound of the y-interval. * * @return The lower bound of the y-interval. */ public double getYLowValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getYLow(); } else { return Double.NaN; } }
/** * Returns the upper bound of the y-interval. * * @return The upper bound of the y-interval. */ public double getYHighValue() { YInterval interval = (YInterval) getObject(); if (interval != null) { return interval.getYHigh(); } else { return Double.NaN; } }