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(<any> result,
java.lang.String yValuesField)
Constructor for creating a PieDataSet with realm data.
|
RealmPieDataSet(<any> result,
java.lang.String yValuesField,
java.lang.String xIndexField)
Constructor for creating a PieDataSet with realm data.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getValueLineColor()
When valuePosition is OutsideSlice, indicates line color
|
float |
getValueLinePart1Length()
When valuePosition is OutsideSlice, indicates length of first half of the line
|
float |
getValueLinePart1OffsetPercentage()
When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size
|
float |
getValueLinePart2Length()
When valuePosition is OutsideSlice, indicates length of second half of the line
|
float |
getValueLineWidth()
When valuePosition is OutsideSlice, indicates line width
|
PieDataSet.ValuePosition |
getXValuePosition() |
PieDataSet.ValuePosition |
getYValuePosition() |
boolean |
isValueLineVariableLength()
When valuePosition is OutsideSlice, this allows variable line length
|
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.
|
void |
setValueLineColor(int valueLineColor) |
void |
setValueLinePart1Length(float valueLinePart1Length) |
void |
setValueLinePart1OffsetPercentage(float valueLinePart1OffsetPercentage) |
void |
setValueLinePart2Length(float valueLinePart2Length) |
void |
setValueLineVariableLength(boolean valueLineVariableLength) |
void |
setValueLineWidth(float valueLineWidth) |
void |
setXValuePosition(PieDataSet.ValuePosition xValuePosition) |
void |
setYValuePosition(PieDataSet.ValuePosition yValuePosition) |
addEntry, addEntryOrdered, build, buildEntryFromResultObject, calcMinMax, 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, waitaddEntry, addEntryOrdered, calcMinMax, 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 RealmPieDataSet(<any> 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(<any> 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 setSliceSpace(float spaceDp)
spaceDp - public float getSliceSpace()
IPieDataSetgetSliceSpace in interface IPieDataSetpublic void setSelectionShift(float shift)
shift - public float getSelectionShift()
IPieDataSetgetSelectionShift in interface IPieDataSetpublic PieDataSet.ValuePosition getXValuePosition()
getXValuePosition in interface IPieDataSetpublic void setXValuePosition(PieDataSet.ValuePosition xValuePosition)
public PieDataSet.ValuePosition getYValuePosition()
getYValuePosition in interface IPieDataSetpublic void setYValuePosition(PieDataSet.ValuePosition yValuePosition)
public int getValueLineColor()
getValueLineColor in interface IPieDataSetpublic void setValueLineColor(int valueLineColor)
public float getValueLineWidth()
getValueLineWidth in interface IPieDataSetpublic void setValueLineWidth(float valueLineWidth)
public float getValueLinePart1OffsetPercentage()
getValueLinePart1OffsetPercentage in interface IPieDataSetpublic void setValueLinePart1OffsetPercentage(float valueLinePart1OffsetPercentage)
public float getValueLinePart1Length()
getValueLinePart1Length in interface IPieDataSetpublic void setValueLinePart1Length(float valueLinePart1Length)
public float getValueLinePart2Length()
getValueLinePart2Length in interface IPieDataSetpublic void setValueLinePart2Length(float valueLinePart2Length)
public boolean isValueLineVariableLength()
isValueLineVariableLength in interface IPieDataSetpublic void setValueLineVariableLength(boolean valueLineVariableLength)