public class LineDataSet extends LineRadarDataSet<Entry> implements ILineDataSet
| Modifier and Type | Class and Description |
|---|---|
static class |
LineDataSet.Mode |
DataSet.RoundingmFillDrawablemDrawHorizontalHighlightIndicator, mDrawVerticalHighlightIndicator, mHighlightDashPathEffect, mHighlightLineWidthmHighLightColormEntries, mXMax, mXMin, mYMax, mYMinmAxisDependency, mColors, mDrawIcons, mDrawValues, mGradientColor, mGradientColors, mHighlightEnabled, mIconsOffset, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| 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.
|
protected void |
copy(LineDataSet lineDataSet) |
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.
|
int |
getCircleColorCount()
Returns the number of colors in this 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 (the circle-hole).
|
float |
getCircleHoleRadius()
Returns the hole radius of the drawn circles.
|
float |
getCircleRadius()
Returns the size of the drawn circles.
|
float |
getCircleSize()
Deprecated.
|
float |
getCubicIntensity()
Returns the intensity of the cubic lines (the effect intensity).
|
android.graphics.DashPathEffect |
getDashPathEffect()
Returns the DashPathEffect that is used for drawing the lines.
|
IFillFormatter |
getFillFormatter()
Returns the IFillFormatter that is set for this DataSet.
|
LineDataSet.Mode |
getMode()
Returns the drawing mode for this line dataset
|
boolean |
isDashedLineEnabled()
Returns true if the dashed-line effect is enabled, false if not.
|
boolean |
isDrawCircleHoleEnabled()
Returns true if drawing the circle-holes is enabled, false if not.
|
boolean |
isDrawCirclesEnabled()
Returns true if drawing circles for this DataSet is enabled, false if not
|
boolean |
isDrawCubicEnabled()
Deprecated.
|
boolean |
isDrawSteppedEnabled()
Deprecated.
|
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 |
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 |
setCircleHoleColor(int color)
Sets the color of the inner circle of the line-circles.
|
void |
setCircleHoleRadius(float holeRadius)
Sets the hole radius of the drawn circles.
|
void |
setCircleRadius(float radius)
Sets the radius of the drawn circles.
|
void |
setCircleSize(float size)
Deprecated.
|
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 |
setFillFormatter(IFillFormatter formatter)
Sets a custom IFillFormatter to the chart that handles the position of the
filled-line for each DataSet.
|
void |
setMode(LineDataSet.Mode mode)
Returns the drawing mode for this LineDataSet
|
copy, getFillAlpha, getFillColor, getFillDrawable, getLineWidth, isDrawFilledEnabled, setDrawFilled, setFillAlpha, setFillColor, setFillDrawable, setLineWidthcopy, disableDashedHighlightLine, enableDashedHighlightLine, getDashPathEffectHighlight, getHighlightLineWidth, isDashedHighlightLineEnabled, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled, setDrawHighlightIndicators, setDrawHorizontalHighlightIndicator, setDrawVerticalHighlightIndicator, setHighlightLineWidthcopy, getHighLightColor, setHighLightColoraddEntry, addEntryOrdered, calcMinMax, calcMinMax, calcMinMaxX, calcMinMaxY, calcMinMaxY, clear, copy, getEntries, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getValues, getXMax, getXMin, getYMax, getYMin, removeEntry, setEntries, setValues, toSimpleString, toStringaddColor, contains, copy, getAxisDependency, getColor, getColor, getColors, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getGradientColor, getGradientColor, getGradientColors, getIconsOffset, getIndexInEntries, getLabel, getValueColors, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, notifyDataSetChanged, removeEntry, removeEntryByXValue, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColor, setColors, setColors, setColors, setColors, setDrawIcons, setDrawValues, setForm, setFormLineDashEffect, setFormLineWidth, setFormSize, setGradientColor, setGradientColors, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFillAlpha, getFillColor, getFillDrawable, getLineWidth, isDrawFilledEnabled, setDrawFilledgetDashPathEffectHighlight, getHighlightLineWidth, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabledgetHighLightColoraddEntry, addEntryOrdered, calcMinMax, calcMinMaxY, clear, contains, getAxisDependency, getColor, getColor, getColors, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getGradientColor, getGradientColor, getGradientColors, getIconsOffset, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, getXMax, getXMin, getYMax, getYMin, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, removeEntry, removeEntry, removeEntryByXValue, removeFirst, removeLast, setAxisDependency, setDrawIcons, setDrawValues, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisiblepublic LineDataSet(java.util.List<Entry> yVals, java.lang.String label)
public DataSet<Entry> copy()
DataSetprotected void copy(LineDataSet lineDataSet)
public LineDataSet.Mode getMode()
getMode in interface ILineDataSetpublic void setMode(LineDataSet.Mode mode)
public void setCubicIntensity(float intensity)
intensity - public float getCubicIntensity()
ILineDataSetgetCubicIntensity in interface ILineDataSetpublic void setCircleRadius(float radius)
radius - public float getCircleRadius()
ILineDataSetgetCircleRadius in interface ILineDataSetpublic void setCircleHoleRadius(float holeRadius)
holeRadius - public float getCircleHoleRadius()
ILineDataSetgetCircleHoleRadius in interface ILineDataSet@Deprecated public void setCircleSize(float size)
size - @Deprecated 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()
ILineDataSetisDashedLineEnabled in interface ILineDataSetpublic android.graphics.DashPathEffect getDashPathEffect()
ILineDataSetgetDashPathEffect in interface ILineDataSetpublic void setDrawCircles(boolean enabled)
enabled - public boolean isDrawCirclesEnabled()
ILineDataSetisDrawCirclesEnabled in interface ILineDataSet@Deprecated public boolean isDrawCubicEnabled()
isDrawCubicEnabled in interface ILineDataSet@Deprecated public boolean isDrawSteppedEnabled()
isDrawSteppedEnabled in interface ILineDataSetpublic java.util.List<java.lang.Integer> getCircleColors()
public int getCircleColor(int index)
ILineDataSetgetCircleColor in interface ILineDataSetpublic int getCircleColorCount()
ILineDataSetgetCircleColorCount in interface ILineDataSetpublic 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 setCircleHoleColor(int color)
color - public int getCircleHoleColor()
ILineDataSetgetCircleHoleColor in interface ILineDataSetpublic void setDrawCircleHole(boolean enabled)
enabled - public boolean isDrawCircleHoleEnabled()
ILineDataSetisDrawCircleHoleEnabled in interface ILineDataSetpublic void setFillFormatter(IFillFormatter formatter)
formatter - public IFillFormatter getFillFormatter()
ILineDataSetgetFillFormatter in interface ILineDataSet