ChartSegment class abstract

Creates the segments for chart series.

It has the public method and properties to customize the segment in the chart series, User can customize the calculation of the segment points by using the method calculateSegmentPoints. It has the property to store the old value of the series to support dynamic animation.

Provides the public properties color, stroke color, fill paint, stroke paint, series and old series to customize and dynamically change each segment in the chart.

Implementers

Constructors

ChartSegment()

Properties

animationFactor double
Animation factor value.
getter/setter pair
currentSegmentIndex int?
Current index value.
getter/setter pair
fillPaint Paint?
Fill paint of the segment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
points List<Offset>
Current point offset value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokePaint Paint?
Stroke paint of the segment.
getter/setter pair

Methods

calculateSegmentPoints() → void
Calculates the rendering bounds of a segment.
dispose() → void
To dispose the objects.
getFillPaint() Paint
Gets the color of the series.
getStrokePaint() Paint
Gets the border color of the series.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPaint(Canvas canvas) → void
Draws segment in series bounds.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited