/** * Returns the x-value. * * @return The x-value (never {@code null}). */ public Double getX() { return (Double) getComparable(); }
/** * 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getX(); }
/** * Returns the lower bound of the x-interval. * * @return The lower bound of the x-interval. */ public double getXLowValue() { XYInterval interval = (XYInterval) getObject(); if (interval != null) { return interval.getXLow(); } 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the upper bound of the x-interval for the specified item in the * series. * * @param index the item index. * * @return The upper bound of the x-interval. * * @since 1.0.5 */ public double getXHighValue(int index) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getXHighValue(); }
/** * 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) { XYIntervalDataItem item = (XYIntervalDataItem) 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getYHighValue(); }
/** * Returns the lower bound of the x-interval for the specified item in the * series. * * @param index the item index. * * @return The lower bound of the x-interval. * * @since 1.0.5 */ public double getXLowValue(int index) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getXLowValue(); }
/** * Adds a data item to the series. * * @param x the x-value. * @param xLow the lower bound of the x-interval. * @param xHigh the upper bound of the x-interval. * @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 xLow, double xHigh, double y, double yLow, double yHigh) { super.add(new XYIntervalDataItem(x, xLow, xHigh, y, yLow, yHigh), true); }
/** * Returns the upper bound of the x-interval. * * @return The upper bound of the x-interval. */ public double getXHighValue() { XYInterval interval = (XYInterval) getObject(); if (interval != null) { return interval.getXHigh(); } 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the upper bound of the x-interval for the specified item in the * series. * * @param index the item index. * * @return The upper bound of the x-interval. * * @since 1.0.5 */ public double getXHighValue(int index) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getXHighValue(); }
/** * 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) { XYIntervalDataItem item = (XYIntervalDataItem) 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getYHighValue(); }
/** * Returns the lower bound of the x-interval for the specified item in the * series. * * @param index the item index. * * @return The lower bound of the x-interval. * * @since 1.0.5 */ public double getXLowValue(int index) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getXLowValue(); }
/** * Adds a data item to the series and sends a {@link SeriesChangeEvent} to * all registered listeners. * * @param x the x-value. * @param xLow the lower bound of the x-interval. * @param xHigh the upper bound of the x-interval. * @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 xLow, double xHigh, double y, double yLow, double yHigh) { add(new XYIntervalDataItem(x, xLow, xHigh, y, yLow, yHigh), true); }
/** * Returns the upper bound of the y-interval. * * @return The upper bound of the y-interval. */ public double getYHighValue() { XYInterval interval = (XYInterval) getObject(); if (interval != null) { return interval.getYHigh(); } else { return Double.NaN; } }
/** * Returns the x-value. * * @return The x-value (never <code>null</code>). */ public Double getX() { return (Double) getComparable(); }
/** * 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) { XYIntervalDataItem item = (XYIntervalDataItem) getDataItem(index); return item.getX(); }
/** * Returns the y-value. * * @return The y-value. */ public double getYValue() { XYInterval interval = (XYInterval) getObject(); if (interval != null) { return interval.getY(); } else { return Double.NaN; } }