public class PointsGraphSeries<E extends DataPointInterface> extends BaseSeries<E>
Modifier and Type | Class and Description |
---|---|
static interface |
PointsGraphSeries.CustomShape
interface to implement a custom
drawing for the data points.
|
static class |
PointsGraphSeries.Shape
choose a predefined shape to draw for
each data point.
|
mOnDataPointTapListener
Constructor and Description |
---|
PointsGraphSeries()
creates the series without data
|
PointsGraphSeries(E[] data)
creates the series with data
|
Modifier and Type | Method and Description |
---|---|
void |
draw(GraphView graphView,
Canvas canvas,
boolean isSecondScale)
plot the data to the viewport
|
void |
drawSelection(GraphView mGraphView,
Canvas canvas,
boolean b,
DataPointInterface value) |
PointsGraphSeries.Shape |
getShape() |
float |
getSize()
This is used for the size of the shape that
will be drawn.
|
protected void |
init()
inits the internal objects
set the defaults
|
void |
setCustomShape(PointsGraphSeries.CustomShape shape)
Use a custom handler to draw your own
drawing for each data point.
|
void |
setShape(PointsGraphSeries.Shape s) |
void |
setSize(float radius)
This is used for the size of the shape that
will be drawn.
|
appendData, appendData, checkValueOrder, clearCursorModeCache, clearReference, findDataPoint, findDataPointAtX, getColor, getHighestValueX, getHighestValueY, getLowestValueX, getLowestValueY, getTitle, getValues, isEmpty, onGraphViewAttached, onTap, registerDataPoint, resetData, resetDataPoints, setColor, setOnDataPointTapListener, setTitle
public PointsGraphSeries()
public PointsGraphSeries(E[] data)
data
- datapointsprotected void init()
public void draw(GraphView graphView, Canvas canvas, boolean isSecondScale)
graphView
- graphviewcanvas
- canvas to draw onisSecondScale
- whether it is the second scalepublic float getSize()
public void setSize(float radius)
radius
- the size of the shapepublic PointsGraphSeries.Shape getShape()
public void setShape(PointsGraphSeries.Shape s)
s
- the shape that will be drawn for each pointpublic void setCustomShape(PointsGraphSeries.CustomShape shape)
shape
- handler to use a custom drawingpublic void drawSelection(GraphView mGraphView, Canvas canvas, boolean b, DataPointInterface value)
drawSelection
in class BaseSeries<E extends DataPointInterface>