public class LineSeries extends AxesSeries
LineChart
.Constructor and Description |
---|
LineSeries()
Initializes a new instance of the
LineSeries class. |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateLabelSpace(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
protected void |
calculateLayoutRects(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
protected void |
createAndCalculateSeriesElements(android.graphics.RectF cartRect,
java.util.ArrayList<android.graphics.RectF> barCartRects,
java.util.ArrayList<android.graphics.RectF> cartRects,
float intervalLength) |
protected void |
DrawLabels(android.graphics.Paint _textPaint,
android.graphics.Canvas _imgCanvas) |
protected void |
DrawSeries(android.graphics.Paint _graphPaint,
android.graphics.Canvas _imgCanvas) |
float |
getLabelOffset()
Gets the offset of labels drawn at data points.
|
java.util.ArrayList<java.lang.String> |
getLabels()
Gets the labels drawn at data points at this
LineSeries . |
LineType |
getLineType()
Gets the type of this
LineSeries . |
java.util.ArrayList<java.lang.Integer> |
getScatterFillColors()
Gets the colors with which scatters are filled.
|
float |
getScatterSize()
Gets the size of the scatter.
|
java.util.ArrayList<java.lang.Integer> |
getScatterStrokeColors()
Gets the colors with which scatters are stroked.
|
android.graphics.PathEffect |
getScatterStrokeEffect()
Gets the PathEffect applied at strokes used for
drawing scatters.
|
float |
getScatterStrokeWidth()
Gets the width of strokes used for drawing
scatters.
|
ScatterType |
getscatterType()
Gets the type of the scatters at this
LineSeries . |
protected void |
layout(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
void |
setLabelOffset(float labelOffset)
Sets the offset of labels drawn at data points.
|
void |
setLabels(java.util.ArrayList<java.lang.String> labels)
Sets the labels drawn at data points at this
LineSeries . |
void |
setLineType(LineType lineType)
Sets the type of this
LineSeries . |
void |
setScatterFillColors(java.util.ArrayList<java.lang.Integer> scatterFillColors)
Sets the colors with which scatters are filled.
|
void |
setScatterSize(float scatterSize)
Sets the size of the scatters.
|
void |
setScatterStrokeColors(java.util.ArrayList<java.lang.Integer> scatterStrokeColors)
Sets the colors with which scatters are stroked.
|
void |
setScatterStrokeEffect(android.graphics.PathEffect effect)
Sets the PathEffect applied at strokes used for
drawing scatters.
|
void |
setScatterStrokeWidth(float scatterStrokeWidth)
Sets the width of strokes used for drawing
scatters.
|
void |
setScatterType(ScatterType scatterType)
Sets the type of the scatters at this
LineSeries . |
correctCartCoords, getXData, getYData, measure, NormalizePoint, setXData, setYData
addSeriesListener, getFillColors, getIndex, getStrokeColors, getStrokeEffect, getStrokeWidth, removeSeriesListener, setFillColors, setStrokeColors, setStrokeEffect, setStrokeWidth, UpdateLayout
public LineSeries()
LineSeries
class.protected void createAndCalculateSeriesElements(android.graphics.RectF cartRect, java.util.ArrayList<android.graphics.RectF> barCartRects, java.util.ArrayList<android.graphics.RectF> cartRects, float intervalLength)
createAndCalculateSeriesElements
in class AxesSeries
protected void layout(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
layout
in class AxesSeries
protected void calculateLayoutRects(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
calculateLayoutRects
in class AxesSeries
protected void calculateLabelSpace(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
calculateLabelSpace
in class AxesSeries
protected void DrawSeries(android.graphics.Paint _graphPaint, android.graphics.Canvas _imgCanvas)
DrawSeries
in class AxesSeries
protected void DrawLabels(android.graphics.Paint _textPaint, android.graphics.Canvas _imgCanvas)
DrawLabels
in class AxesSeries
public java.util.ArrayList<java.lang.Integer> getScatterStrokeColors()
public void setScatterStrokeColors(java.util.ArrayList<java.lang.Integer> scatterStrokeColors)
scatterStrokeColors
- An ArrayList with Color objects.public java.util.ArrayList<java.lang.Integer> getScatterFillColors()
public void setScatterFillColors(java.util.ArrayList<java.lang.Integer> scatterFillColors)
scatterFillColors
- An ArrayList with Color objects.public void setScatterSize(float scatterSize)
scatterSize
- A float value that represents
the diameter of the scatter.public float getScatterSize()
public void setLineType(LineType lineType)
LineSeries
.lineType
- One of the LineType
enumeration values.public LineType getLineType()
LineSeries
.lineType
- One of the LineType
enumeration values.public void setScatterType(ScatterType scatterType)
LineSeries
.scatterType
- One of the ScatterType
enumeration values.public ScatterType getscatterType()
LineSeries
.ScatterType
enumeration values.public void setLabels(java.util.ArrayList<java.lang.String> labels)
LineSeries
.labels
- ArrayList with the labels.public java.util.ArrayList<java.lang.String> getLabels()
LineSeries
.public void setLabelOffset(float labelOffset)
labelOffset
- The offset.public float getLabelOffset()
public void setScatterStrokeEffect(android.graphics.PathEffect effect)
effect
- A PathEffect object.public android.graphics.PathEffect getScatterStrokeEffect()
public void setScatterStrokeWidth(float scatterStrokeWidth)
scatterStrokeWidth
- The width.public float getScatterStrokeWidth()