public class BarEntry extends Entry
| Constructor and Description |
|---|
BarEntry(float x,
float y)
Constructor for normal bars (not stacked).
|
BarEntry(float x,
float[] vals)
Constructor for stacked bar entries.
|
BarEntry(float x,
float[] vals,
android.graphics.drawable.Drawable icon)
Constructor for stacked bar entries.
|
BarEntry(float x,
float[] vals,
android.graphics.drawable.Drawable icon,
java.lang.Object data)
Constructor for stacked bar entries.
|
BarEntry(float x,
float[] vals,
java.lang.Object data)
Constructor for stacked bar entries.
|
BarEntry(float x,
float y,
android.graphics.drawable.Drawable icon)
Constructor for normal bars (not stacked).
|
BarEntry(float x,
float y,
android.graphics.drawable.Drawable icon,
java.lang.Object data)
Constructor for normal bars (not stacked).
|
BarEntry(float x,
float y,
java.lang.Object data)
Constructor for normal bars (not stacked).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcRanges() |
BarEntry |
copy()
Returns an exact copy of the BarEntry.
|
float |
getBelowSum(int stackIndex)
Deprecated.
|
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.
|
Range[] |
getRanges()
Returns the ranges of the individual stack-entries.
|
float |
getSumBelow(int stackIndex) |
float |
getY()
Returns the value of this BarEntry.
|
float[] |
getYVals()
Returns the stacked values this BarEntry represents, or null, if only a single value is represented (then, use
getY()).
|
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, getX, setX, toString, writeToParcelpublic BarEntry(float x,
float y)
x - y - public BarEntry(float x,
float y,
java.lang.Object data)
x - y - data - - Spot for additional data this Entry represents.public BarEntry(float x,
float y,
android.graphics.drawable.Drawable icon)
x - y - icon - - icon imagepublic BarEntry(float x,
float y,
android.graphics.drawable.Drawable icon,
java.lang.Object data)
x - y - icon - - icon imagedata - - Spot for additional data this Entry represents.public BarEntry(float x,
float[] vals)
x - vals - - the stack values, use at least 2public BarEntry(float x,
float[] vals,
java.lang.Object data)
x - vals - - the stack values, use at least 2data - - Spot for additional data this Entry represents.public BarEntry(float x,
float[] vals,
android.graphics.drawable.Drawable icon)
x - vals - - the stack values, use at least 2icon - - icon imagepublic BarEntry(float x,
float[] vals,
android.graphics.drawable.Drawable icon,
java.lang.Object data)
x - vals - - the stack values, use at least 2icon - - icon imagedata - - Spot for additional data this Entry represents.public BarEntry copy()
public float[] getYVals()
public void setVals(float[] vals)
vals - public float getY()
public Range[] getRanges()
public boolean isStacked()
@Deprecated public float getBelowSum(int stackIndex)
public float getSumBelow(int stackIndex)
public float getPositiveSum()
public float getNegativeSum()
protected void calcRanges()