public interface Series<E extends DataPointInterface>
BaseSeries
or another
implemented Series class to save time.
Anyway this interface can make sense if you want to implement
a custom data provider, because BaseSeries uses a internal Array to store
the data.Modifier and Type | Method and Description |
---|---|
void |
clearReference(GraphView graphView)
clear reference to view and activity
|
void |
draw(GraphView graphView,
Canvas canvas,
boolean isSecondScale)
Plots the series to the viewport.
|
int |
getColor() |
double |
getHighestValueX() |
double |
getHighestValueY() |
double |
getLowestValueX() |
double |
getLowestValueY() |
java.lang.String |
getTitle() |
java.util.Iterator<E> |
getValues(double from,
double until)
get the values for a specific range.
|
boolean |
isEmpty() |
void |
onGraphViewAttached(GraphView graphView)
called when the series was added to a graph
|
void |
onTap(float x,
float y)
called by the tap detector in order to trigger
the on tap on datapoint event.
|
void |
setOnDataPointTapListener(OnDataPointTapListener l)
set a listener for tap on a data point.
|
double getLowestValueX()
double getHighestValueX()
double getLowestValueY()
double getHighestValueY()
java.util.Iterator<E> getValues(double from, double until)
from
- the minimal x-valueuntil
- the maximal x-valuevoid draw(GraphView graphView, Canvas canvas, boolean isSecondScale)
graphView
- corresponding graphviewcanvas
- canvas to draw onisSecondScale
- true if the drawing is for the second scalejava.lang.String getTitle()
int getColor()
void setOnDataPointTapListener(OnDataPointTapListener l)
l
- listenervoid onTap(float x, float y)
x
- pixely
- pixelvoid onGraphViewAttached(GraphView graphView)
graphView
- graphviewboolean isEmpty()
void clearReference(GraphView graphView)
graphView
-