1 package com.github.mikephil.charting.interfaces.datasets; 2 3 import android.graphics.Paint; 4 5 import com.github.mikephil.charting.data.CandleEntry; 6 7 /** 8 * Created by philipp on 21/10/15. 9 */ 10 public interface ICandleDataSet extends ILineScatterCandleRadarDataSet<CandleEntry> { 11 12 /** 13 * Returns the space that is left out on the left and right side of each 14 * candle. 15 * 16 * @return 17 */ getBarSpace()18 float getBarSpace(); 19 20 /** 21 * Returns whether the candle bars should show? 22 * When false, only "ticks" will show 23 * 24 * - default: true 25 * 26 * @return 27 */ getShowCandleBar()28 boolean getShowCandleBar(); 29 30 /** 31 * Returns the width of the candle-shadow-line in pixels. 32 * 33 * @return 34 */ getShadowWidth()35 float getShadowWidth(); 36 37 /** 38 * Returns shadow color for all entries 39 * 40 * @return 41 */ getShadowColor()42 int getShadowColor(); 43 44 /** 45 * Returns the neutral color (for open == close) 46 * 47 * @return 48 */ getNeutralColor()49 int getNeutralColor(); 50 51 /** 52 * Returns the increasing color (for open < close). 53 * 54 * @return 55 */ getIncreasingColor()56 int getIncreasingColor(); 57 58 /** 59 * Returns the decreasing color (for open > close). 60 * 61 * @return 62 */ getDecreasingColor()63 int getDecreasingColor(); 64 65 /** 66 * Returns paint style when open < close 67 * 68 * @return 69 */ getIncreasingPaintStyle()70 Paint.Style getIncreasingPaintStyle(); 71 72 /** 73 * Returns paint style when open > close 74 * 75 * @return 76 */ getDecreasingPaintStyle()77 Paint.Style getDecreasingPaintStyle(); 78 79 /** 80 * Is the shadow color same as the candle color? 81 * 82 * @return 83 */ getShadowColorSameAsCandle()84 boolean getShadowColorSameAsCandle(); 85 } 86