public class SimpleXYSeries extends Object implements XYSeries, PlotListener
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SimpleXYSeries.ArrayFormat | 
| Constructor and Description | 
|---|
| SimpleXYSeries(List<? extends Number> xVals,
              List<? extends Number> yVals,
              String title) | 
| SimpleXYSeries(List<? extends Number> model,
              SimpleXYSeries.ArrayFormat format,
              String title)Generates an XYSeries instance from the List of numbers passed in. | 
| SimpleXYSeries(String title) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFirst(Number x,
        Number y) | 
| void | addLast(Number x,
       Number y) | 
| String | getTitle() | 
| Number | getX(int index)Returns the x-value for an index within a series. | 
| Number | getY(int index)Returns the y-value for an index within a series. | 
| void | onAfterDraw(Plot source,
           android.graphics.Canvas canvas)Fired immediately after the Plot "source" is drawn onto canvas. | 
| void | onBeforeDraw(Plot source,
            android.graphics.Canvas canvas)Fired immediately before the Plot "source" is drawn onto canvas. | 
| XY | removeFirst() | 
| XY | removeLast() | 
| void | setModel(List<? extends Number> model,
        SimpleXYSeries.ArrayFormat format)Use the provided list of Numbers as yVals and their corresponding indexes as xVals. | 
| void | setTitle(String title) | 
| void | setX(Number value,
    int index)Sets individual x value based on index | 
| void | setXY(Number xVal,
     Number yVal,
     int index)Sets xy values based on index | 
| void | setY(Number value,
    int index)Sets individual y value based on index | 
| int | size() | 
| void | useImplicitXVals()Use index value as xVal, instead of explicit, user provided xVals. | 
public SimpleXYSeries(String title)
public SimpleXYSeries(List<? extends Number> model, SimpleXYSeries.ArrayFormat format, String title)
model - A List of Number elements comprising the data model.format - Format of the model.  A format of Y_VALS_ONLY means that the array only contains y-values.
               For this format x values are autogenerated using values of 0 through n-1 where n is the size of the model.title - Title of the seriespublic void onBeforeDraw(Plot source, android.graphics.Canvas canvas)
PlotListeneronBeforeDraw in interface PlotListenerpublic void onAfterDraw(Plot source, android.graphics.Canvas canvas)
PlotListeneronAfterDraw in interface PlotListenerpublic void useImplicitXVals()
public void setModel(List<? extends Number> model, SimpleXYSeries.ArrayFormat format)
model - A List of Number elements comprising the data model.format - Format of the model.  A format of Y_VALS_ONLY means that the array only contains y-values.
               For this format x values are autogenerated using values of 0 through n-1 where n is the size of the model.public void setX(Number value, int index)
value - index - public void setY(Number value, int index)
value - index - public void setXY(Number xVal, Number yVal, int index)
xVal - yVal - index - public XY removeFirst()
XY with first equal to x-val and second equal to y-val.public String getTitle()
public void setTitle(String title)
public int size()
public Number getX(int index)
XYSeries