IShapeRenderer class abstract

Draws the shape of one scatter entry. Assign an implementation to ScatterDataSet.shapeRenderer, either one of the built-in shapes or a function: IShapeRenderer.fromFunction((c, set, vph, x, y, paint) => c.drawCircleP(x, y, 4, paint)).

Kotlin's fun interface; a lambda is wrapped with IShapeRenderer.fromFunction.

Implementers

Constructors

IShapeRenderer()
Lets subclasses be constant.
const
IShapeRenderer.fromFunction(void renderShape(Canvas c, IScatterDataSet dataSet, ViewPortHandler viewPortHandler, double posX, double posY, ChartPaint renderPaint))
Wraps renderShape in a shape renderer.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderShape(Canvas c, IScatterDataSet dataSet, ViewPortHandler viewPortHandler, double posX, double posY, ChartPaint renderPaint) → void
Draws the shape centered at the pixel position (posX, posY).
toString() → String
A string representation of this object.
inherited

Operators

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