List of usage examples for org.jfree.data.xy VectorSeries getDataItem
@Override public ComparableObjectItem getDataItem(int index)
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns the x-value for an item within a series. * * @param series the series index.//w w w . j a v a 2 s . c om * @param item the item index. * * @return The x-value. */ @Override public double getXValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getXValue(); }
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns the y-value for an item within a series. * * @param series the series index./*from w w w .j av a2s .co m*/ * @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(); }
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns the vector for an item in a series. * * @param series the series index.//from www. j av a 2 s. co m * @param item the item index. * * @return The vector (possibly <code>null</code>). */ @Override public Vector getVector(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVector(); }
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns the x-component of the vector for an item in a series. * * @param series the series index./*from w w w . j ava 2 s . c o m*/ * @param item the item index. * * @return The x-component of the vector. */ @Override public double getVectorXValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVectorX(); }
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns the y-component of the vector for an item in a series. * * @param series the series index.//from w ww. j a v a 2 s . c o m * @param item the item index. * * @return The y-component of the vector. */ @Override public double getVectorYValue(int series, int item) { VectorSeries s = (VectorSeries) this.data.get(series); VectorDataItem di = (VectorDataItem) s.getDataItem(item); return di.getVectorY(); }