public class CandleDataSet extends LineScatterCandleRadarDataSet<CandleEntry> implements ICandleDataSet
DataSet.Rounding| Modifier and Type | Field and Description |
|---|---|
protected int |
mDecreasingColor
color for open > close
|
protected android.graphics.Paint.Style |
mDecreasingPaintStyle
paint style when open > close
descreasing candlesticks are traditionally filled
|
protected int |
mIncreasingColor
color for open < close
|
protected android.graphics.Paint.Style |
mIncreasingPaintStyle
paint style when open < close
increasing candlesticks are traditionally hollow
|
protected int |
mNeutralColor
color for open == close
|
protected int |
mShadowColor
shadow line color, set -1 for backward compatibility and uses default
color
|
mDrawHorizontalHighlightIndicator, mDrawVerticalHighlightIndicator, mHighlightDashPathEffect, mHighlightLineWidthmHighLightColormEntries, mXMax, mXMin, mYMax, mYMinmAxisDependency, mColors, mDrawIcons, mDrawValues, mGradientColor, mGradientColors, mHighlightEnabled, mIconsOffset, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
CandleDataSet(java.util.List<CandleEntry> yVals,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcMinMax(CandleEntry e)
Updates the min and max x and y value of this DataSet based on the given Entry.
|
protected void |
calcMinMaxY(CandleEntry e) |
DataSet<CandleEntry> |
copy()
Provides an exact copy of the DataSet this method is used on.
|
protected void |
copy(CandleDataSet candleDataSet) |
float |
getBarSpace()
Returns the space that is left out on the left and right side of each
candle.
|
int |
getDecreasingColor()
Returns the decreasing color (for open > close).
|
android.graphics.Paint.Style |
getDecreasingPaintStyle()
Returns paint style when open > close
|
int |
getIncreasingColor()
Returns the increasing color (for open < close).
|
android.graphics.Paint.Style |
getIncreasingPaintStyle()
Returns paint style when open < close
|
int |
getNeutralColor()
Returns the neutral color (for 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.
|
boolean |
getShowCandleBar()
Returns whether the candle bars should show?
When false, only "ticks" will show
- default: true
|
void |
setBarSpace(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 |
setNeutralColor(int color)
Sets the one and ONLY color that should be used for this DataSet 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.
|
void |
setShowCandleBar(boolean showCandleBar)
Sets whether the candle bars should show?
|
copy, disableDashedHighlightLine, enableDashedHighlightLine, getDashPathEffectHighlight, getHighlightLineWidth, isDashedHighlightLineEnabled, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled, setDrawHighlightIndicators, setDrawHorizontalHighlightIndicator, setDrawVerticalHighlightIndicator, setHighlightLineWidthcopy, getHighLightColor, setHighLightColoraddEntry, addEntryOrdered, calcMinMax, calcMinMaxX, 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, waitgetDashPathEffectHighlight, 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, setVisibleprotected android.graphics.Paint.Style mIncreasingPaintStyle
protected android.graphics.Paint.Style mDecreasingPaintStyle
protected int mNeutralColor
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 copy(CandleDataSet candleDataSet)
protected void calcMinMax(CandleEntry e)
DataSetcalcMinMax in class DataSet<CandleEntry>protected void calcMinMaxY(CandleEntry e)
calcMinMaxY in class DataSet<CandleEntry>public void setBarSpace(float space)
space - public float getBarSpace()
ICandleDataSetgetBarSpace in interface ICandleDataSetpublic void setShadowWidth(float width)
width - public float getShadowWidth()
ICandleDataSetgetShadowWidth in interface ICandleDataSetpublic void setShowCandleBar(boolean showCandleBar)
showCandleBar - public boolean getShowCandleBar()
ICandleDataSetgetShowCandleBar in interface ICandleDataSetpublic void setNeutralColor(int color)
color - public int getNeutralColor()
ICandleDataSetgetNeutralColor in interface ICandleDataSetpublic void setIncreasingColor(int color)
color - public int getIncreasingColor()
ICandleDataSetgetIncreasingColor in interface ICandleDataSetpublic void setDecreasingColor(int color)
color - public int getDecreasingColor()
ICandleDataSetgetDecreasingColor in interface ICandleDataSetpublic android.graphics.Paint.Style getIncreasingPaintStyle()
ICandleDataSetgetIncreasingPaintStyle in interface ICandleDataSetpublic void setIncreasingPaintStyle(android.graphics.Paint.Style paintStyle)
paintStyle - public android.graphics.Paint.Style getDecreasingPaintStyle()
ICandleDataSetgetDecreasingPaintStyle in interface ICandleDataSetpublic void setDecreasingPaintStyle(android.graphics.Paint.Style decreasingPaintStyle)
decreasingPaintStyle - public int getShadowColor()
ICandleDataSetgetShadowColor in interface ICandleDataSetpublic void setShadowColor(int shadowColor)
shadowColor - public boolean getShadowColorSameAsCandle()
ICandleDataSetgetShadowColorSameAsCandle in interface ICandleDataSetpublic void setShadowColorSameAsCandle(boolean shadowColorSameAsCandle)
shadowColorSameAsCandle -