public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getX(), getY(), mSize, getData()); return c; }
values1.add(new BubbleEntry(i, (float) (Math.random() * range), (float) (Math.random() * range), getResources().getDrawable(R.drawable.star))); values2.add(new BubbleEntry(i, (float) (Math.random() * range), (float) (Math.random() * range), getResources().getDrawable(R.drawable.star))); values3.add(new BubbleEntry(i, (float) (Math.random() * range), (float) (Math.random() * range)));
private BubbleData generateBubbleData() { BubbleData bd = new BubbleData(); ArrayList<BubbleEntry> entries = new ArrayList<>(); for (int index = 0; index < count; index++) { float y = getRandom(10, 105); float size = getRandom(100, 105); entries.add(new BubbleEntry(index + 0.5f, y, size)); } BubbleDataSet set = new BubbleDataSet(entries, "Bubble DataSet"); set.setColors(ColorTemplate.VORDIPLOM_COLORS); set.setValueTextSize(10f); set.setValueTextColor(Color.WHITE); set.setHighlightCircleWidth(1.5f); set.setDrawValues(true); bd.addDataSet(set); return bd; }
public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getX(), getY(), mSize, getData()); return c; }
public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getX(), getY(), mSize, getData()); return c; }
public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getX(), getY(), mSize, getData()); return c; }
@Override public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getXIndex(), getX(), getY(), mSize, getData()); return c; }
float size = (float) (Math.random() * range); yVals1.add(new BubbleEntry(i, val, size)); float size = (float) (Math.random() * range); yVals2.add(new BubbleEntry(i, val, size)); float size = (float) (Math.random() * range); yVals3.add(new BubbleEntry(i, val, size));
protected BubbleData generateBubbleData() { BubbleData bd = new BubbleData(); ArrayList<BubbleEntry> entries = new ArrayList<>(); for (int index = 0; index < itemCount; index++) { float y = getRandom(10, 105); float size = getRandom(100, 105); entries.add(new BubbleEntry(index + 0.5f, y, size)); } BubbleDataSet set = new BubbleDataSet(entries, "Bubble DataSet"); set.setColors(ColorTemplate.VORDIPLOM_COLORS); set.setValueTextSize(10f); set.setValueTextColor(Color.WHITE); set.setHighlightCircleWidth(1.5f); set.setDrawValues(true); bd.addDataSet(set); return bd; }