BubbleGeometryPainter<T> class
Paint bubble value item.
┌───────────┐ --> Max value in set or ChartData.axisMax │ │ │ │ │ /⎺⎺\ │ --> ChartItem max value │ __/ │ │ │ │ │ └───────────┘ --> 0 or ChartData.axisMin
- Inheritance
-
- Object
- GeometryPainter<
T> - BubbleGeometryPainter
Constructors
-
BubbleGeometryPainter(ChartItem<
T> item, ChartData<T?> data, ItemOptions itemOptions, BubbleItem drawDataItem) - Constructor for bubble painter
Properties
-
data
→ ChartData<
T?> -
Current data of the chart
finalinherited
- drawDataItem → BubbleItem
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
item
→ ChartItem<
T?> -
Current item being painted
finalinherited
- itemOptions → ItemOptions
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
draw(
Canvas canvas, Size size, Paint paint) → void -
Draw ChartItem on the canvas.
Canvas with item size is passed, item's padding and margin need to be calculated
This is to allow more flexibility for more custom items if needed
override
-
itemWidth(
Size size) → double -
Calculate item width based on current Size and ChartState
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