/
NikolayIvkin
/
MPAndroidChart1
Обзор
Документация
Войти
/
NikolayIvkin
/
MPAndroidChart1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
MPChartLib/src/main/java/com/github/mikephil/charting/data/BubbleEntry.java
90 строк
2 KB
Daniel Cohen Gindi
Implemented icon support
20 фев 2017, 14:33
20 фев 2017, 14:33
a02e108
Код
Авторство
О чём код?
package com.github.mikephil.charting.data; import android.annotation.SuppressLint; import android.graphics.drawable.Drawable; /** * Subclass of Entry that holds a value for one entry in a BubbleChart. Bubble * chart implementation: Copyright 2015 Pierre-Marc Airoldi Licensed under * Apache License 2.0 * * @author Philipp Jahoda */ @SuppressLint("ParcelCreator") public class BubbleEntry extends Entry { /** size value */ private float mSize = 0f; /** * Constructor. * * @param x The value on the x-axis. * @param y The value on the y-axis. * @param size The size of the bubble. */ public BubbleEntry(float x, float y, float size) { super(x, y); this.mSize = size; } /** * Constructor. * * @param x The value on the x-axis. * @param y The value on the y-axis. * @param size The size of the bubble. * @param data Spot for additional data this Entry represents. */ public BubbleEntry(float x, float y, float size, Object data) { super(x, y, data); this.mSize = size; } /** * Constructor. * * @param x The value on the x-axis. * @param y The value on the y-axis. * @param size The size of the bubble. * @param icon Icon image */ public BubbleEntry(float x, float y, float size, Drawable icon) { super(x, y, icon); this.mSize = size; } /** * Constructor. * * @param x The value on the x-axis. * @param y The value on the y-axis. * @param size The size of the bubble. * @param icon Icon image * @param data Spot for additional data this Entry represents. */ public BubbleEntry(float x, float y, float size, Drawable icon, Object data) { super(x, y, icon, data); this.mSize = size; } public BubbleEntry copy() { BubbleEntry c = new BubbleEntry(getX(), getY(), mSize, getData()); return c; } /** * Returns the size of this entry (the size of the bubble). * * @return */ public float getSize() { return mSize; } public void setSize(float size) { this.mSize = size; } }