public class LineDataSet extends LineRadarDataSet<Entry>
mDrawHorizontalHighlightIndicator, mDrawVerticalHighlightIndicator, mHighlightDashPathEffect, mHighlightLineWidthmHighLightColormAxisDependency, mColors, mDrawValues, mHighlightEnabled, mLastEnd, mLastStart, mValueFormatter, mYMax, mYMin, mYVals| Constructor and Description |
|---|
LineDataSet(java.util.List<Entry> yVals,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
DataSet<Entry> |
copy()
Provides an exact copy of the DataSet this method is used on.
|
void |
disableDashedLine()
Disables the line to be drawn in dashed mode.
|
void |
enableDashedLine(float lineLength,
float spaceLength,
float phase)
Enables the line to be drawn in dashed mode, e.g.
|
int |
getCircleColor(int index)
Returns the color at the given index of the DataSet's circle-color array.
|
java.util.List<java.lang.Integer> |
getCircleColors()
returns all colors specified for the circles
|
int |
getCircleHoleColor()
Returns the color of the inner circle.
|
float |
getCircleSize()
returns the circlesize
|
float |
getCubicIntensity()
Returns the intensity of the cubic lines (the effect intensity).
|
android.graphics.DashPathEffect |
getDashPathEffect()
returns the DashPathEffect that is set for this DataSet
|
FillFormatter |
getFillFormatter()
Returns the FillFormatter that is set for this DataSet.
|
boolean |
isDashedLineEnabled()
Returns true if the dashed-line effect is enabled, false if not.
|
boolean |
isDrawCircleHoleEnabled() |
boolean |
isDrawCirclesEnabled()
returns true if drawing circles for this DataSet is enabled, false if not
|
boolean |
isDrawCubicEnabled()
returns true if drawing cubic lines is enabled, false if not.
|
void |
resetCircleColors()
resets the circle-colors array and creates a new one
|
void |
setCircleColor(int color)
Sets the one and ONLY color that should be used for this DataSet.
|
void |
setCircleColorHole(int color)
Sets the color of the inner circle of the line-circles.
|
void |
setCircleColors(int[] colors)
Sets the colors that should be used for the circles of this DataSet.
|
void |
setCircleColors(int[] colors,
android.content.Context c)
ets the colors that should be used for the circles of this DataSet.
|
void |
setCircleColors(java.util.List<java.lang.Integer> colors)
Sets the colors that should be used for the circles of this DataSet.
|
void |
setCircleSize(float size)
sets the size (radius) of the circle shpaed value indicators, default
size = 4f
|
void |
setCubicIntensity(float intensity)
Sets the intensity for cubic lines (if enabled).
|
void |
setDrawCircleHole(boolean enabled)
Set this to true to allow drawing a hole in each data circle.
|
void |
setDrawCircles(boolean enabled)
set this to true to enable the drawing of circle indicators for this
DataSet, default true
|
void |
setDrawCubic(boolean enabled)
If set to true, the linechart lines are drawn in cubic-style instead of
linear.
|
void |
setFillFormatter(FillFormatter formatter)
Sets a custom FillFormatter to the chart that handles the position of the
filled-line for each DataSet.
|
getFillAlpha, getFillColor, getLineWidth, isDrawFilledEnabled, setDrawFilled, setFillAlpha, setFillColor, setLineWidthdisableDashedHighlightLine, enableDashedHighlightLine, getDashPathEffectHighlight, getHighlightLineWidth, isDashedHighlightLineEnabled, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled, setDrawHighlightIndicators, setDrawHorizontalHighlightIndicator, setDrawVerticalHighlightIndicator, setHighlightLineWidthgetHighLightColor, setHighLightColoraddColor, addEntry, addEntryOrdered, calcMinMax, clear, contains, getAverage, getAxisDependency, getColor, getColor, getColors, getEntriesForXIndex, getEntryCount, getEntryForXIndex, getEntryIndex, getEntryPosition, getIndexInEntries, getLabel, getValueCount, getValueFormatter, getValueTextColor, getValueTextSize, getValueTypeface, getYMax, getYMin, getYValForXIndex, getYVals, getYValueSum, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsDefaultFormatter, notifyDataSetChanged, removeEntry, removeEntry, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColors, setColors, setColors, setDrawValues, setHighlightEnabled, setLabel, setValueFormatter, setValueTextColor, setValueTextSize, setValueTypeface, setVisible, toSimpleString, toStringpublic LineDataSet(java.util.List<Entry> yVals, java.lang.String label)
public DataSet<Entry> copy()
DataSetpublic void setCubicIntensity(float intensity)
intensity - public float getCubicIntensity()
public void setCircleSize(float size)
size - public float getCircleSize()
public void enableDashedLine(float lineLength,
float spaceLength,
float phase)
lineLength - the length of the line piecesspaceLength - the length of space in between the piecesphase - offset, in degrees (normally, use 0)public void disableDashedLine()
public boolean isDashedLineEnabled()
public android.graphics.DashPathEffect getDashPathEffect()
public void setDrawCircles(boolean enabled)
enabled - public boolean isDrawCirclesEnabled()
public void setDrawCubic(boolean enabled)
enabled - public boolean isDrawCubicEnabled()
public java.util.List<java.lang.Integer> getCircleColors()
public int getCircleColor(int index)
index - public void setCircleColors(java.util.List<java.lang.Integer> colors)
colors - public void setCircleColors(int[] colors)
colors - public void setCircleColors(int[] colors,
android.content.Context c)
colors - public void setCircleColor(int color)
color - public void resetCircleColors()
public void setCircleColorHole(int color)
color - public int getCircleHoleColor()
public void setDrawCircleHole(boolean enabled)
enabled - public boolean isDrawCircleHoleEnabled()
public void setFillFormatter(FillFormatter formatter)
formatter - public FillFormatter getFillFormatter()