public class BarDataSet extends BarLineScatterCandleBubbleDataSet<BarEntry> implements IBarDataSet
DataSet.RoundingmHighLightColormEntries, mXMax, mXMin, mYMax, mYMinmAxisDependency, mColors, mDrawIcons, mDrawValues, mGradientColor, mGradientColors, mHighlightEnabled, mIconsOffset, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
BarDataSet(java.util.List<BarEntry> yVals,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcMinMax(BarEntry e)
Updates the min and max x and y value of this DataSet based on the given Entry.
|
DataSet<BarEntry> |
copy()
Provides an exact copy of the DataSet this method is used on.
|
protected void |
copy(BarDataSet barDataSet) |
int |
getBarBorderColor()
Returns the color drawing borders around the bars.
|
float |
getBarBorderWidth()
Returns the width used for drawing borders around the bars.
|
int |
getBarShadowColor()
Returns the color used for drawing the bar-shadows.
|
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 |
setBarBorderColor(int color)
Sets the color drawing borders around the bars.
|
void |
setBarBorderWidth(float width)
Sets the width used for drawing borders around the bars.
|
void |
setBarShadowColor(int color)
Sets the color used for drawing the bar-shadows.
|
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.
|
copy, getHighLightColor, setHighLightColoraddEntry, addEntryOrdered, calcMinMax, calcMinMaxX, calcMinMaxY, calcMinMaxY, clear, copy, getEntries, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getValues, getXMax, getXMin, getYMax, getYMin, removeEntry, setEntries, setValues, toSimpleString, toStringaddColor, contains, copy, getAxisDependency, getColor, getColor, getColors, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getGradientColor, getGradientColor, getGradientColors, getIconsOffset, getIndexInEntries, getLabel, getValueColors, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, notifyDataSetChanged, removeEntry, removeEntryByXValue, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColor, setColors, setColors, setColors, setColors, setDrawIcons, setDrawValues, setForm, setFormLineDashEffect, setFormLineWidth, setFormSize, setGradientColor, setGradientColors, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHighLightColoraddEntry, addEntryOrdered, calcMinMax, calcMinMaxY, clear, contains, getAxisDependency, getColor, getColor, getColors, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getGradientColor, getGradientColor, getGradientColors, getIconsOffset, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, getXMax, getXMin, getYMax, getYMin, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, removeEntry, removeEntry, removeEntryByXValue, removeFirst, removeLast, setAxisDependency, setDrawIcons, setDrawValues, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisiblepublic BarDataSet(java.util.List<BarEntry> yVals, java.lang.String label)
public DataSet<BarEntry> copy()
DataSetprotected void copy(BarDataSet barDataSet)
protected void calcMinMax(BarEntry e)
DataSetcalcMinMax in class DataSet<BarEntry>public int getStackSize()
IBarDataSetgetStackSize in interface IBarDataSetpublic boolean isStacked()
IBarDataSetisStacked in interface IBarDataSetpublic int getEntryCountStacks()
public void setBarShadowColor(int color)
color - public int getBarShadowColor()
IBarDataSetgetBarShadowColor in interface IBarDataSetpublic void setBarBorderWidth(float width)
public float getBarBorderWidth()
getBarBorderWidth in interface IBarDataSetpublic void setBarBorderColor(int color)
public int getBarBorderColor()
getBarBorderColor 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