Package 

Class CandleEntry

  • 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
      float getShadowRange() Returns the overall range (difference) between shadow-high andshadow-low.
      float getBodyRange() Returns the body size (difference between open and close).
      float getY() Returns the center value of the candle.
      CandleEntry copy()
      float getHigh() Returns the upper shadows highest value.
      void setHigh(float mShadowHigh)
      float getLow() Returns the lower shadows lowest value.
      void setLow(float mShadowLow)
      float getClose() Returns the bodys close value.
      void setClose(float mClose)
      float getOpen() Returns the bodys open value.
      void setOpen(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-axis
        shadowH - The (shadow) high value
        shadowL - The (shadow) low value
        open - The open value
        close - 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-axis
        shadowH - The (shadow) high value
        shadowL - The (shadow) low value
        data - 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-axis
        shadowH - The (shadow) high value
        shadowL - The (shadow) low value
        icon - 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-axis
        shadowH - The (shadow) high value
        shadowL - The (shadow) low value
        icon - Icon image
        data - 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)

      • 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.

      • getOpen

         float getOpen()

        Returns the bodys open value.

      • setOpen

         void setOpen(float mOpen)