BubbleEntry<D> class
Entry for a bubble chart: a point plus the bubble's size.
D is the type of the payload stored in data. Kotlin's positional constructor and its payload-less
BubbleEntry(x, y, size, icon) factory are this constructor with named arguments, data optional.
Constructors
- BubbleEntry({required double x, required double y, required double size, ChartDrawable? icon, D? data})
-
Creates a bubble at
xandy(its position in value space) with itssizein value space, an optionalicondrawn at the entry when icons are enabled and an optionaldatapayload.
Properties
- data → D?
-
Optional payload carried with the entry, for example the object the entry was made from.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ ChartDrawable?
-
Drawable drawn at the entry's position when the data set has icons enabled, or null for none.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ double
-
Size of the bubble in value space. Bubbles are scaled relative to the data set's largest size when
BubbleDataSet.isNormalizeSizeEnabledis on.getter/setter pair - x ↔ double
-
Position on the x axis in value space (not an index).
getter/setter pairinherited
- y ↔ double
-
The y value in value space; for pie and radar entries this is the entry's value.
getter/setter pairinherited
Methods
-
copy(
) → BubbleEntry< D> -
Returns a new entry with the same x, y, icon and payload. The icon and payload are shared, not copied.
override
-
equalTo(
Entry? e) → bool -
Compares x and y within Utils.FLOAT_EPSILON and requires the same payload instance.
Unlike
==, two separately created entries with the same values are considered equal.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited