forked from PhilJay/MPAndroidChart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBubbleData.java
More file actions
54 lines (42 loc) · 1.32 KB
/
BubbleData.java
File metadata and controls
54 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.github.mikephil.charting.data;
import java.util.ArrayList;
import java.util.List;
public class BubbleData extends BarLineScatterCandleData<BubbleDataSet> {
public BubbleData() {
super();
}
public BubbleData(List<String> xVals) {
super(xVals);
}
public BubbleData(String[] xVals) {
super(xVals);
}
public BubbleData(List<String> xVals, List<BubbleDataSet> dataSets) {
super(xVals, dataSets);
}
public BubbleData(String[] xVals, List<BubbleDataSet> dataSets) {
super(xVals, dataSets);
}
public BubbleData(List<String> xVals, BubbleDataSet dataSet) {
super(xVals, toList(dataSet));
}
public BubbleData(String[] xVals, BubbleDataSet dataSet) {
super(xVals, toList(dataSet));
}
private static List<BubbleDataSet> toList(BubbleDataSet dataSet) {
List<BubbleDataSet> sets = new ArrayList<BubbleDataSet>();
sets.add(dataSet);
return sets;
}
/**
* Sets the width of the circle that surrounds the bubble when highlighted
* for all DataSet objects this data object contains, in dp.
*
* @param width
*/
public void setHighlightCircleWidth(float width) {
for (BubbleDataSet set : mDataSets) {
set.setHighlightCircleWidth(width);
}
}
}