com.androidplot.xy
Interface XYDataset

All Superinterfaces:
Dataset

public interface XYDataset
extends Dataset

An interface through which data in the form of (x, y) items can be accessed.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.androidplot.data.Dataset
Dataset.DomainOrder
 
Method Summary
 int getItemCount(int series)
          Returns the number of items in a series.
 Number getMaxX(int series)
           
 Number getMaxY(int series)
           
 Number getMinX(int series)
           
 Number getMinY(int series)
           
 Number getX(int series, int index)
          Returns the x-value for an index within a series.
 Number getY(int series, int index)
          Returns the y-value (as a double primitive) for an index within a series.
 
Methods inherited from interface com.androidplot.data.Dataset
addChangeListener, getDomainOrder, readLock, readUnlock, removeChangeListener
 

Method Detail

getX

Number getX(int series,
            int index)
Returns the x-value for an index within a series.

Parameters:
series - the series index (in the range 0 to getSeriesCount() - 1).
index - the index index (in the range 0 to getItemCount(series)).
Returns:
The x-value.

getMinX

Number getMinX(int series)

getMaxX

Number getMaxX(int series)

getItemCount

int getItemCount(int series)
Returns the number of items in a series.

It is recommended that classes that implement this method should throw an IllegalArgumentException if the series argument is outside the specified range.

Parameters:
series - the series index (in the range 0 to getSeriesCount() - 1).
Returns:
The item count.

getY

Number getY(int series,
            int index)
Returns the y-value (as a double primitive) for an index within a series.

Parameters:
series - the series index (in the range 0 to getSeriesCount() - 1).
index - the index index (in the range 0 to getItemCount(series)).
Returns:
The y-value.

getMinY

Number getMinY(int series)

getMaxY

Number getMaxY(int series)


Copyright © 2010. All Rights Reserved.