-
- 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.
-
-
Constructor Summary
Constructors Constructor Description FixedSizeEditableXYSeries(String title, int size)
-
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. -
-
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.
-
size
int size()
-
getX
Number getX(int index)
Returns the x-value for an index within a series.
- Parameters:
index
- the index index (in the range0
tosize()-1
).
-
-
-
-