@Override public DataSet<CandleEntry> copy() { List<CandleEntry> entries = new ArrayList<CandleEntry>(); for (int i = 0; i < mValues.size(); i++) { entries.add(mValues.get(i).copy()); } CandleDataSet copied = new CandleDataSet(entries, getLabel()); copy(copied); return copied; }
@Override public DataSet<CandleEntry> copy() { List<CandleEntry> yVals = new ArrayList<CandleEntry>(); yVals.clear(); for (int i = 0; i < mValues.size(); i++) { yVals.add(mValues.get(i).copy()); } CandleDataSet copied = new CandleDataSet(yVals, getLabel()); copied.mColors = mColors; copied.mShadowWidth = mShadowWidth; copied.mShowCandleBar = mShowCandleBar; copied.mBarSpace = mBarSpace; copied.mHighLightColor = mHighLightColor; copied.mIncreasingPaintStyle = mIncreasingPaintStyle; copied.mDecreasingPaintStyle = mDecreasingPaintStyle; copied.mShadowColor = mShadowColor; return copied; }
@Override public DataSet<CandleEntry> copy() { List<CandleEntry> entries = new ArrayList<CandleEntry>(); for (int i = 0; i < mValues.size(); i++) { entries.add(mValues.get(i).copy()); } CandleDataSet copied = new CandleDataSet(entries, getLabel()); copy(copied); return copied; }
@Override public DataSet<CandleEntry> copy() { List<CandleEntry> yVals = new ArrayList<CandleEntry>(); yVals.clear(); for (int i = 0; i < mValues.size(); i++) { yVals.add(mValues.get(i).copy()); } CandleDataSet copied = new CandleDataSet(yVals, getLabel()); copied.mColors = mColors; copied.mShadowWidth = mShadowWidth; copied.mShowCandleBar = mShowCandleBar; copied.mBarSpace = mBarSpace; copied.mHighLightColor = mHighLightColor; copied.mIncreasingPaintStyle = mIncreasingPaintStyle; copied.mDecreasingPaintStyle = mDecreasingPaintStyle; copied.mShadowColor = mShadowColor; return copied; }
@Override public DataSet<CandleEntry> copy() { List<CandleEntry> yVals = new ArrayList<CandleEntry>(); yVals.clear(); for (int i = 0; i < mValues.size(); i++) { yVals.add(mValues.get(i).copy()); } CandleDataSet copied = new CandleDataSet(yVals, getLabel()); copied.mColors = mColors; copied.mShadowWidth = mShadowWidth; copied.mShowCandleBar = mShowCandleBar; copied.mBarSpace = mBarSpace; copied.mHighLightColor = mHighLightColor; copied.mIncreasingPaintStyle = mIncreasingPaintStyle; copied.mDecreasingPaintStyle = mDecreasingPaintStyle; copied.mShadowColor = mShadowColor; return copied; }