public class BarDataSet extends BarLineScatterCandleBubbleDataSet<BarEntry> implements IBarDataSet
DataSet.RoundingmHighLightColormAxisDependency, mColors, mDrawValues, mHighlightEnabled, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
BarDataSet(java.util.List<BarEntry> yVals,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
calcMinMax(int start,
int end)
Calculates the minimum and maximum y value (mYMin, mYMax).
|
DataSet<BarEntry> |
copy()
Provides an exact copy of the DataSet this method is used on.
|
int |
getBarShadowColor()
Returns the color used for drawing the bar-shadows.
|
float |
getBarSpace()
Returns the space between bars as the actual value (0 - 1.0f)
|
float |
getBarSpacePercent()
returns the space between bars in percent of the whole width of one value
|
int |
getEntryCountStacks()
returns the overall entry count, including counting each stack-value
individually
|
int |
getHighLightAlpha()
Returns the alpha value (transparency) that is used for drawing the
highlight indicator.
|
java.lang.String[] |
getStackLabels()
Returns the labels used for the different value-stacks in the legend.
|
int |
getStackSize()
Returns the maximum number of bars that can be stacked upon another in
this DataSet.
|
boolean |
isStacked()
Returns true if this DataSet is stacked (stacksize > 1) or not.
|
void |
setBarShadowColor(int color)
Sets the color used for drawing the bar-shadows.
|
void |
setBarSpacePercent(float percent)
sets the space between the bars in percent (0-100) of the total bar width
|
void |
setHighLightAlpha(int alpha)
Set the alpha value (transparency) that is used for drawing the highlight
indicator bar.
|
void |
setStackLabels(java.lang.String[] labels)
Sets labels for different values of bar-stacks, in case there are one.
|
getHighLightColor, setHighLightColoraddEntry, addEntryOrdered, clear, getEntriesForXIndex, getEntryCount, getEntryForIndex, getEntryForXIndex, getEntryForXIndex, getEntryIndex, getEntryIndex, getYMax, getYMin, getYValForXIndex, getYVals, removeEntry, toSimpleString, toStringaddColor, contains, getAxisDependency, getColor, getColor, getColors, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, isDrawValuesEnabled, isHighlightEnabled, isVisible, notifyDataSetChanged, removeEntry, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColor, setColors, setColors, setColors, setColors, setDrawValues, setHighlightEnabled, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHighLightColoraddEntry, addEntryOrdered, clear, contains, getAxisDependency, getColor, getColor, getColors, getEntryCount, getEntryForIndex, getEntryForXIndex, getEntryForXIndex, getEntryIndex, getEntryIndex, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, getYMax, getYMin, getYValForXIndex, isDrawValuesEnabled, isHighlightEnabled, isVisible, removeEntry, removeEntry, removeFirst, removeLast, setAxisDependency, setDrawValues, setHighlightEnabled, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisiblepublic BarDataSet(java.util.List<BarEntry> yVals, java.lang.String label)
public DataSet<BarEntry> copy()
DataSetpublic void calcMinMax(int start,
int end)
IDataSetcalcMinMax in interface IDataSet<BarEntry>calcMinMax in class DataSet<BarEntry>start - starting index in your data listend - ending index in your data listpublic int getStackSize()
IBarDataSetgetStackSize in interface IBarDataSetpublic boolean isStacked()
IBarDataSetisStacked in interface IBarDataSetpublic int getEntryCountStacks()
public float getBarSpacePercent()
public float getBarSpace()
IBarDataSetgetBarSpace in interface IBarDataSetpublic void setBarSpacePercent(float percent)
percent - public void setBarShadowColor(int color)
color - public int getBarShadowColor()
IBarDataSetgetBarShadowColor in interface IBarDataSetpublic void setHighLightAlpha(int alpha)
alpha - public int getHighLightAlpha()
IBarDataSetgetHighLightAlpha in interface IBarDataSetpublic void setStackLabels(java.lang.String[] labels)
labels - public java.lang.String[] getStackLabels()
IBarDataSetgetStackLabels in interface IBarDataSet