public class RealmBarDataSet<T extends RealmObject> extends RealmBarLineScatterCandleBubbleDataSet<T,BarEntry> implements IBarDataSet
mHighLightColormIndexField, mValues, mValuesField, mYMax, mYMin, resultsmAxisDependency, mColors, mDrawValues, mHighlightEnabled, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
RealmBarDataSet(<any> results,
java.lang.String yValuesField,
java.lang.String xIndexField) |
RealmBarDataSet(<any> results,
java.lang.String yValuesField,
java.lang.String xIndexField,
java.lang.String stackValueFieldName)
Constructor for supporting stacked values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(<any> results)
Rebuilds the DataSet based on the given RealmResults.
|
BarEntry |
buildEntryFromResultObject(T realmObject,
int xIndex) |
void |
calcMinMax(int start,
int end)
Calculates the minimum and maximum y value (mYMin, mYMax).
|
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.
|
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 |
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 |
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, getIndexField, getResults, getValues, getValuesField, getYMax, getYMin, getYValForXIndex, getYValsForXIndex, removeEntry, setIndexField, setValuesFieldaddColor, contains, getAxisDependency, getColor, getColor, getColors, getIndexInEntries, getLabel, getValueColors, 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, toString, wait, wait, waitgetHighLightColoraddEntry, addEntryOrdered, clear, contains, getAxisDependency, getColor, getColor, getColors, getEntriesForXIndex, getEntryCount, getEntryForIndex, getEntryForXIndex, getEntryForXIndex, getEntryIndex, getEntryIndex, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, getYMax, getYMin, getYValForXIndex, getYValsForXIndex, isDrawValuesEnabled, isHighlightEnabled, isVisible, removeEntry, removeEntry, removeFirst, removeLast, setAxisDependency, setDrawValues, setHighlightEnabled, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisiblepublic RealmBarDataSet(<any> results,
java.lang.String yValuesField,
java.lang.String xIndexField)
public RealmBarDataSet(<any> results,
java.lang.String yValuesField,
java.lang.String xIndexField,
java.lang.String stackValueFieldName)
results - yValuesField - xIndexField - stackValueFieldName - public void build(<any> results)
RealmBaseDataSetbuild in class RealmBaseDataSet<T extends RealmObject,BarEntry>public BarEntry buildEntryFromResultObject(T realmObject, int xIndex)
buildEntryFromResultObject in class RealmBaseDataSet<T extends RealmObject,BarEntry>public void calcMinMax(int start,
int end)
IDataSetcalcMinMax in interface IDataSet<BarEntry>calcMinMax in class RealmBaseDataSet<T extends RealmObject,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 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 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