Package 

Class FixedSizeEditableXYSeries

  • All Implemented Interfaces:
    com.androidplot.Series , com.androidplot.xy.EditableXYSeries , com.androidplot.xy.XYSeries

    
    public class FixedSizeEditableXYSeries
     implements EditableXYSeries
                        

    An efficient implementation of EditableXYSeries intended for use cases where the total number of points visible is known ahead of time and is fairly static. resize may be used to resize the series when necessary, however it is a slow operation and should be avoided as much as possible.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private String title
    • Method Summary

      Modifier and Type Method Description
      String getTitle()
      void setTitle(String title)
      void setX(@Nullable() Number x, int index)
      void setY(@Nullable() Number y, int index)
      void resize(int size) May be used to dynamically resize the series.
      int size()
      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.
      • Methods inherited from class com.androidplot.xy.EditableXYSeries

        setX, setY
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FixedSizeEditableXYSeries

        FixedSizeEditableXYSeries(String title, int size)
    • Method Detail

      • resize

         void resize(int size)

        May be used to dynamically resize the series. This is a relatively slow operation, especiallyas size increases so care should be taken to avoid unnecessary usage.

      • getX

         Number getX(int index)

        Returns the x-value for an index within a series.

        Parameters:
        index - the index index (in the range 0 tosize()-1).
      • getY

         Number getY(int index)

        Returns the y-value for an index within a series.

        Parameters:
        index - the index index (in the range 0 tosize()-1).