public class RealmBubbleDataSet<T extends RealmObject> extends RealmBarLineScatterCandleBubbleDataSet<T,BubbleEntry> implements IBubbleDataSet
| Modifier and Type | Field and Description |
|---|---|
protected float |
mMaxSize |
protected boolean |
mNormalizeSize |
protected float |
mXMax |
protected float |
mXMin |
mHighLightColormIndexField, mValues, mValuesField, mYMax, mYMin, resultsmAxisDependency, mColors, mDrawValues, mHighlightEnabled, mValueColors, mValueFormatter, mValueTextSize, mValueTypeface, mVisible| Constructor and Description |
|---|
RealmBubbleDataSet(<any> result,
java.lang.String yValuesField,
java.lang.String sizeField)
Constructor for creating a CandleDataSet with realm data.
|
RealmBubbleDataSet(<any> result,
java.lang.String yValuesField,
java.lang.String xIndexField,
java.lang.String sizeField)
Constructor for creating a CandleDataSet with realm data.
|
| Modifier and Type | Method and Description |
|---|---|
BubbleEntry |
buildEntryFromResultObject(T realmObject,
int xIndex) |
void |
calcMinMax(int start,
int end)
Calculates the minimum and maximum y value (mYMin, mYMax).
|
float |
getHighlightCircleWidth()
Returns the width of the highlight-circle that surrounds the bubble
|
float |
getMaxSize() |
java.lang.String |
getSizeField()
Returns the database fieldname that stores bubble size.
|
float |
getXMax() |
float |
getXMin() |
boolean |
isNormalizeSizeEnabled() |
void |
setHighlightCircleWidth(float width)
Sets the width of the circle that surrounds the bubble when highlighted,
in dp.
|
void |
setNormalizeSizeEnabled(boolean normalizeSize) |
void |
setSizeField(java.lang.String sizeField)
Sets the database fieldname for the bubble size.
|
getHighLightColor, setHighLightColoraddEntry, addEntryOrdered, build, 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, setVisibleprotected float mXMax
protected float mXMin
protected float mMaxSize
protected boolean mNormalizeSize
public RealmBubbleDataSet(<any> result,
java.lang.String yValuesField,
java.lang.String sizeField)
result - the queried results from the realm databaseyValuesField - the name of the field in your data object that represents the y-valuesizeField - the name of the field in your data object that represents the bubble sizepublic RealmBubbleDataSet(<any> result,
java.lang.String yValuesField,
java.lang.String xIndexField,
java.lang.String sizeField)
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-indexsizeField - the name of the field in your data object that represents the bubble sizepublic BubbleEntry buildEntryFromResultObject(T realmObject, int xIndex)
buildEntryFromResultObject in class RealmBaseDataSet<T extends RealmObject,BubbleEntry>public void calcMinMax(int start,
int end)
IDataSetcalcMinMax in interface IDataSet<BubbleEntry>calcMinMax in class RealmBaseDataSet<T extends RealmObject,BubbleEntry>start - starting index in your data listend - ending index in your data listpublic float getXMax()
getXMax in interface IBubbleDataSetpublic float getXMin()
getXMin in interface IBubbleDataSetpublic float getMaxSize()
getMaxSize in interface IBubbleDataSetpublic boolean isNormalizeSizeEnabled()
isNormalizeSizeEnabled in interface IBubbleDataSetpublic void setNormalizeSizeEnabled(boolean normalizeSize)
public void setHighlightCircleWidth(float width)
IBubbleDataSetsetHighlightCircleWidth in interface IBubbleDataSetpublic float getHighlightCircleWidth()
IBubbleDataSetgetHighlightCircleWidth in interface IBubbleDataSetpublic void setSizeField(java.lang.String sizeField)
sizeField - public java.lang.String getSizeField()