public class RealmPieDataSet<T extends RealmObject> extends RealmBaseDataSet<T,Entry> implements IPieDataSet
mIndexField, mValues, mValuesField, mYMax, mYMin, resultsmAxisDependency, mColors, mDrawValues, mHighlightEnabled, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
RealmPieDataSet(
Constructor for creating a PieDataSet with realm data.
|
RealmPieDataSet(
Constructor for creating a PieDataSet with realm data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(
Rebuilds the DataSet based on the given RealmResults.
|
float |
getSelectionShift()
Returns the distance a highlighted piechart slice is "shifted" away from
the chart-center in dp.
|
float |
getSliceSpace()
Returns the space that is set to be between the piechart-slices of this
DataSet, in pixels.
|
void |
setSelectionShift(float shift)
sets the distance the highlighted piechart-slice of this DataSet is
"shifted" away from the center of the chart, default 12f
|
void |
setSliceSpace(float spaceDp)
Sets the space that is left out between the piechart-slices in dp.
|
addEntry, addEntryOrdered, calcMinMax, clear, getEntryCount, getEntryForIndex, getEntryForXIndex, getEntryForXIndex, getEntryIndex, getEntryIndex, getIndexField, getResults, getValues, getValuesField, getYMax, getYMin, getYValForXIndex, 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, waitaddEntry, addEntryOrdered, calcMinMax, 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 RealmPieDataSet(result, java.lang.String yValuesField)
result - the queried results from the realm databaseyValuesField - the name of the field in your data object that represents the y-valuepublic RealmPieDataSet(result, java.lang.String yValuesField, java.lang.String xIndexField)
result - the queried results from the realm databaseyValuesField - the name of the field in your data object that represents the y-valuexIndexField - the name of the field in your data object that represents the x-indexpublic void build(results)
RealmBaseDataSetbuild in class RealmBaseDataSet<T extends RealmObject,Entry>public void setSliceSpace(float spaceDp)
spaceDp - public float getSliceSpace()
IPieDataSetgetSliceSpace in interface IPieDataSetpublic void setSelectionShift(float shift)
shift - public float getSelectionShift()
IPieDataSetgetSelectionShift in interface IPieDataSet