public class CandleDataSet extends LineScatterCandleRadarDataSet<CandleEntry>
| Modifier and Type | Field and Description |
|---|---|
protected int |
mDecreasingColor
color for open > close
|
protected android.graphics.Paint.Style |
mDecreasingPaintStyle
paint style when open > close
|
protected int |
mIncreasingColor
color for open <= close
|
protected android.graphics.Paint.Style |
mIncreasingPaintStyle
paint style when open <= close
|
protected int |
mShadowColor
shadow line color, set -1 for backward compatibility and uses default
color
|
mDrawHorizontalHighlightIndicator, mDrawVerticalHighlightIndicator, mHighlightDashPathEffect, mHighlightLineWidthmHighLightColormAxisDependency, mColors, mDrawValues, mHighlightEnabled, mLastEnd, mLastStart, mValueFormatter, mYMax, mYMin, mYVals| Constructor and Description |
|---|
CandleDataSet(java.util.List<CandleEntry> yVals,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcMinMax(int start,
int end)
calc minimum and maximum y value
|
DataSet<CandleEntry> |
copy()
Provides an exact copy of the DataSet this method is used on.
|
float |
getBodySpace()
Returns the space that is left out on the left and right side of each
candle.
|
int |
getDecreasingColor()
Returns the decreasing color.
|
android.graphics.Paint.Style |
getDecreasingPaintStyle()
Returns paint style when open > close
|
int |
getIncreasingColor()
Returns the increasing color.
|
android.graphics.Paint.Style |
getIncreasingPaintStyle()
Returns paint style when open <= close
|
int |
getShadowColor()
Returns shadow color for all entries
|
boolean |
getShadowColorSameAsCandle()
Is the shadow color same as the candle color?
|
float |
getShadowWidth()
Returns the width of the candle-shadow-line in pixels.
|
void |
setBodySpace(float space)
Sets the space that is left out on the left and right side of each
candle, default 0.1f (10%), max 0.45f, min 0f
|
void |
setDecreasingColor(int color)
Sets the one and ONLY color that should be used for this DataSet when
open > close.
|
void |
setDecreasingPaintStyle(android.graphics.Paint.Style decreasingPaintStyle)
Sets paint style when open > close
|
void |
setIncreasingColor(int color)
Sets the one and ONLY color that should be used for this DataSet when
open <= close.
|
void |
setIncreasingPaintStyle(android.graphics.Paint.Style paintStyle)
Sets paint style when open <= close
|
void |
setShadowColor(int shadowColor)
Sets shadow color for all entries
|
void |
setShadowColorSameAsCandle(boolean shadowColorSameAsCandle)
Sets shadow color to be the same color as the candle color
|
void |
setShadowWidth(float width)
Sets the width of the candle-shadow-line in pixels.
|
disableDashedHighlightLine, enableDashedHighlightLine, getDashPathEffectHighlight, getHighlightLineWidth, isDashedHighlightLineEnabled, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled, setDrawHighlightIndicators, setDrawHorizontalHighlightIndicator, setDrawVerticalHighlightIndicator, setHighlightLineWidthgetHighLightColor, setHighLightColoraddColor, addEntry, addEntryOrdered, 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, toStringprotected android.graphics.Paint.Style mIncreasingPaintStyle
protected android.graphics.Paint.Style mDecreasingPaintStyle
protected int mIncreasingColor
protected int mDecreasingColor
protected int mShadowColor
public CandleDataSet(java.util.List<CandleEntry> yVals, java.lang.String label)
public DataSet<CandleEntry> copy()
DataSetcopy in class DataSet<CandleEntry>protected void calcMinMax(int start,
int end)
DataSetcalcMinMax in class DataSet<CandleEntry>public void setBodySpace(float space)
space - public float getBodySpace()
public void setShadowWidth(float width)
width - public float getShadowWidth()
public void setDecreasingColor(int color)
color - public int getDecreasingColor()
public void setIncreasingColor(int color)
color - public int getIncreasingColor()
public android.graphics.Paint.Style getDecreasingPaintStyle()
public void setDecreasingPaintStyle(android.graphics.Paint.Style decreasingPaintStyle)
decreasingPaintStyle - public android.graphics.Paint.Style getIncreasingPaintStyle()
public void setIncreasingPaintStyle(android.graphics.Paint.Style paintStyle)
paintStyle - public int getShadowColor()
public void setShadowColor(int shadowColor)
shadowColor - public boolean getShadowColorSameAsCandle()
public void setShadowColorSameAsCandle(boolean shadowColorSameAsCandle)
shadowColorSameAsCandle -