public class Entry
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Entry> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
Entry(float val,
int xIndex)
A Entry represents one single entry in the chart.
|
|
Entry(float val,
int xIndex,
java.lang.Object data)
A Entry represents one single entry in the chart.
|
protected |
Entry(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
Entry |
copy()
returns an exact copy of the entry
|
int |
describeContents() |
boolean |
equalTo(Entry e)
Compares value, xIndex and data of the entries.
|
java.lang.Object |
getData()
Returns the data, additional information that this Entry represents, or
null, if no data has been specified.
|
float |
getVal()
Returns the total value the entry represents.
|
int |
getXIndex()
returns the x-index the value of this object is mapped to
|
void |
setData(java.lang.Object data)
Sets additional data this Entry should represent.
|
void |
setVal(float val)
Sets the value for the entry.
|
void |
setXIndex(int x)
sets the x-index for the entry
|
java.lang.String |
toString()
returns a string representation of the entry containing x-index and value
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Entry> CREATOR
public Entry(float val,
int xIndex)
val - the y value (the actual value of the entry)xIndex - the corresponding index in the x value array (index on the
x-axis of the chart, must NOT be higher than the length of the
x-values String array)public Entry(float val,
int xIndex,
java.lang.Object data)
val - the y value (the actual value of the entry)xIndex - the corresponding index in the x value array (index on the
x-axis of the chart, must NOT be higher than the length of the
x-values String array)data - Spot for additional data this Entry represents.protected Entry(android.os.Parcel in)
public int getXIndex()
public void setXIndex(int x)
x - public float getVal()
public void setVal(float val)
val - public java.lang.Object getData()
public void setData(java.lang.Object data)
data - public Entry copy()
public boolean equalTo(Entry e)
e - public java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable