DrawingModel

abstract class DrawingModel<T : DrawingModel.DrawingInfo>(drawingInfo: List<Map<Float, T>>) : List<Map<Float, T>>

Houses drawing information for a Chart.

Inheritors

Constructors

Link copied to clipboard
constructor(drawingInfo: List<Map<Float, T>>)

Types

Link copied to clipboard
interface DrawingInfo

Houses positional information for a single Chart entity (e.g., a column or a point).

Functions

Link copied to clipboard
abstract fun transform(drawingInfo: List<Map<Float, T>>, from: DrawingModel<T>?, fraction: Float): DrawingModel<T>

Returns an intermediate DrawingModel between this one and from. The returned drawing model includes the provided DrawingInfo list. fraction is the balance between from and this DrawingModel, with 0 corresponding to from, and 1 corresponding to this DrawingModel. The returned object should be an instance of the DrawingModel subclass to which this function belongs.