-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathBubbleEntryFloat.kt
More file actions
55 lines (49 loc) · 1.48 KB
/
BubbleEntryFloat.kt
File metadata and controls
55 lines (49 loc) · 1.48 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
55
package info.appdev.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
*/
@SuppressLint("ParcelCreator")
open class BubbleEntryFloat : EntryFloat {
/**
* Returns the size of this entry (the size of the bubble).
*/
var size: Float
/**
* Constructor.
*
* @param x The value on the x-axis.
* @param y The value on the y-axis.
* @param size The size of the bubble.
*/
constructor(x: Float, y: Float, size: Float) : super(x, y) {
this.size = 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.
*/
constructor(x: Float, y: Float, size: Float, data: Any?) : super(x, y, data) {
this.size = 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
*/
constructor(x: Float, y: Float, size: Float, icon: Drawable?) : super(x, y, icon) {
this.size = size
}
override fun copy(): BubbleEntryFloat {
return BubbleEntryFloat(x, y, this.size, data)
}
}