Example usage for org.jfree.data.xy VectorDataItem getVectorX

List of usage examples for org.jfree.data.xy VectorDataItem getVectorX

Introduction

In this page you can find the example usage for org.jfree.data.xy VectorDataItem getVectorX.

Prototype

public double getVectorX() 

Source Link

Document

Returns the x-component for the vector.

Usage

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./*ww  w .  j a  v  a 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();
}