-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable
public class CandleEntry extends Entry
Subclass of Entry that holds all values for one entry in a CandleStickChart.
-
-
Constructor Summary
Constructors Constructor Description CandleEntry(float x, float shadowH, float shadowL, float open, float close)Constructor. CandleEntry(float x, float shadowH, float shadowL, float open, float close, Object data)Constructor. CandleEntry(float x, float shadowH, float shadowL, float open, float close, Drawable icon)Constructor. CandleEntry(float x, float shadowH, float shadowL, float open, float close, Drawable icon, Object data)Constructor.
-
Method Summary
Modifier and Type Method Description floatgetShadowRange()Returns the overall range (difference) between shadow-high andshadow-low. floatgetBodyRange()Returns the body size (difference between open and close). floatgetY()Returns the center value of the candle. CandleEntrycopy()floatgetHigh()Returns the upper shadows highest value. voidsetHigh(float mShadowHigh)floatgetLow()Returns the lower shadows lowest value. voidsetLow(float mShadowLow)floatgetClose()Returns the bodys close value. voidsetClose(float mClose)floatgetOpen()Returns the bodys open value. voidsetOpen(float mOpen)-
Methods inherited from class com.github.mikephil.charting.data.Entry
copy, describeContents, equalTo, getX, setX, toString, writeToParcel -
Methods inherited from class com.github.mikephil.charting.data.BaseEntry
getData, getIcon, getY, setData, setIcon, setY -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CandleEntry
CandleEntry(float x, float shadowH, float shadowL, float open, float close)
Constructor.- Parameters:
x- The value on the x-axisshadowH- The (shadow) high valueshadowL- The (shadow) low valueopen- The open valueclose- The close value
-
CandleEntry
CandleEntry(float x, float shadowH, float shadowL, float open, float close, Object data)
Constructor.- Parameters:
x- The value on the x-axisshadowH- The (shadow) high valueshadowL- The (shadow) low valuedata- Spot for additional data this Entry represents
-
CandleEntry
CandleEntry(float x, float shadowH, float shadowL, float open, float close, Drawable icon)
Constructor.- Parameters:
x- The value on the x-axisshadowH- The (shadow) high valueshadowL- The (shadow) low valueicon- Icon image
-
CandleEntry
CandleEntry(float x, float shadowH, float shadowL, float open, float close, Drawable icon, Object data)
Constructor.- Parameters:
x- The value on the x-axisshadowH- The (shadow) high valueshadowL- The (shadow) low valueicon- Icon imagedata- Spot for additional data this Entry represents
-
-
Method Detail
-
getShadowRange
float getShadowRange()
Returns the overall range (difference) between shadow-high andshadow-low.
-
getBodyRange
float getBodyRange()
Returns the body size (difference between open and close).
-
getY
float getY()
Returns the center value of the candle. (Middle value between high andlow)
-
copy
CandleEntry copy()
-
getHigh
float getHigh()
Returns the upper shadows highest value.
-
setHigh
void setHigh(float mShadowHigh)
-
getLow
float getLow()
Returns the lower shadows lowest value.
-
setLow
void setLow(float mShadowLow)
-
getClose
float getClose()
Returns the bodys close value.
-
setClose
void setClose(float mClose)
-
getOpen
float getOpen()
Returns the bodys open value.
-
setOpen
void setOpen(float mOpen)
-
-
-
-