/** * Returns the vector. * * @return The vector (possibly {@code null}). */ public Vector getVector() { return (Vector) getObject(); }
/** * Returns the x-component of the vector for an item in the series. * * @param index the item index. * * @return The x-component of the vector. */ public double getVectorXValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getVectorX(); }
/** * Returns the x-value. * * @return The x-value (never {@code null}). */ public double getXValue() { XYCoordinate xy = (XYCoordinate) getComparable(); return xy.getX(); }
/** * Returns the y-value for the specified item. * * @param index the item index. * * @return The y-value. */ public double getYValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the y-component of the vector for an item in the series. * * @param index the item index. * * @return The y-component of the vector. */ public double getVectorYValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getVectorY(); }
/** * Returns the x-value for the specified item. * * @param index the item index. * * @return The x-value. */ public double getXValue(int index) { VectorDataItem item = (VectorDataItem) this.getDataItem(index); return item.getXValue(); }
/** * Adds a data item to the series. * * @param x the x-value. * @param y the y-value. * @param deltaX the vector x. * @param deltaY the vector y. */ public void add(double x, double y, double deltaX, double deltaY) { add(new VectorDataItem(x, y, deltaX, deltaY), true); }
/** * Returns the vector for an item in a series. * * @param series the series index. * @param item the item index. * * @return The vector (possibly <code>null</code>). */ public Vector getVector(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVector(); }
/** * Returns the x-component of the vector for an item in the series. * * @param index the item index. * * @return The x-component of the vector. */ public double getVectorXValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getVectorX(); }
/** * Returns the x-value. * * @return The x-value (never <code>null</code>). */ public double getXValue() { XYCoordinate xy = (XYCoordinate) getComparable(); return xy.getX(); }
/** * Returns the y-value for the specified item. * * @param index the item index. * * @return The y-value. */ public double getYValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getYValue(); }
/** * Returns the y-component of the vector for an item in the series. * * @param index the item index. * * @return The y-component of the vector. */ public double getVectorYValue(int index) { VectorDataItem item = (VectorDataItem) getDataItem(index); return item.getVectorY(); }
/** * Returns the x-value for the specified item. * * @param index the item index. * * @return The x-value. */ public double getXValue(int index) { VectorDataItem item = (VectorDataItem) this.getDataItem(index); return item.getXValue(); }
/** * Adds a data item to the series. * * @param x the x-value. * @param y the y-value. * @param deltaX the vector x. * @param deltaY the vector y. */ public void add(double x, double y, double deltaX, double deltaY) { super.add(new VectorDataItem(x, y, deltaX, deltaY), true); }
/** * Returns the vector for an item in a series. * * @param series the series index. * @param item the item index. * * @return The vector (possibly {@code null}). */ @Override public Vector getVector(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVector(); }
/** * Returns the vector. * * @return The vector (possibly <code>null</code>). */ public Vector getVector() { return (Vector) getObject(); }
/** * Returns the x-component of the vector for an item in a series. * * @param series the series index. * @param item the item index. * * @return The x-component of the vector. */ public double getVectorXValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVectorX(); }
/** * Returns the y-value. * * @return The y-value. */ public double getYValue() { XYCoordinate xy = (XYCoordinate) getComparable(); return xy.getY(); }
/** * Returns the y-value for an item within a series. * * @param series the series index. * @param item the item index. * * @return The y-value. */ @Override public double getYValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getYValue(); }
/** * Returns the y-component of the vector for an item in a series. * * @param series the series index. * @param item the item index. * * @return The y-component of the vector. */ public double getVectorYValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVectorY(); }