public class BarEntry extends Entry
| Constructor and Description |
|---|
BarEntry(float[] vals,
int xIndex)
Constructor for stacked bar entries.
|
BarEntry(float[] vals,
int xIndex,
java.lang.String label)
Constructor for stacked bar entries.
|
BarEntry(float val,
int xIndex)
Constructor for normal bars (not stacked).
|
BarEntry(float val,
int xIndex,
java.lang.Object data)
Constructor for normal bars (not stacked).
|
| Modifier and Type | Method and Description |
|---|---|
BarEntry |
copy()
Returns an exact copy of the BarEntry.
|
float |
getBelowSum(int stackIndex) |
float |
getNegativeSum()
Returns the sum of all negative values this entry (if stacked) contains.
|
float |
getPositiveSum()
Reuturns the sum of all positive values this entry (if stacked) contains.
|
float |
getVal()
Returns the value of this BarEntry.
|
float[] |
getVals()
Returns the stacked values this BarEntry represents, or null, if only a single value is represented (then, use
getVal()).
|
boolean |
isStacked()
Returns true if this BarEntry is stacked (has a values array), false if not.
|
void |
setVals(float[] vals)
Set the array of values this BarEntry should represent.
|
describeContents, equalTo, getData, getXIndex, setData, setVal, setXIndex, toString, writeToParcelpublic BarEntry(float[] vals,
int xIndex)
vals - - the stack values, use at lest 2xIndex - public BarEntry(float val,
int xIndex)
val - xIndex - public BarEntry(float[] vals,
int xIndex,
java.lang.String label)
vals - - the stack values, use at least 2xIndex - label - Additional description label.public BarEntry(float val,
int xIndex,
java.lang.Object data)
val - xIndex - data - Spot for additional data this Entry represents.public BarEntry copy()
public float[] getVals()
public void setVals(float[] vals)
vals - public float getVal()
public boolean isStacked()
public float getBelowSum(int stackIndex)
public float getPositiveSum()
public float getNegativeSum()