BitmapTimeSeriesData

class BitmapTimeSeriesData<Drawable : AnyBitmapDrawable>(seriesData: <Error class: unknown class><TimeIntervalKey, Drawable>?, val size: Size, validIntervals: List<TimeInterval>) : Disposable

Constructors

Link copied to clipboard
constructor(seriesData: <Error class: unknown class><TimeIntervalKey, Drawable>?, size: Size, validIntervals: List<TimeInterval>)

Properties

Link copied to clipboard
val count: Int
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dataAtIndex(index: Int, closest: Boolean = false): Pair<Drawable?, Int>?
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
fun getData(interval: TimeInterval): Drawable?

Returns the bitmap data for the specified time interval in the time series.

Link copied to clipboard
fun prepareTextures(context: Context)
Link copied to clipboard
fun purgeData(excludingInterval: TimeInterval = 0)

Purges the bitmap data for all time intervals in the time series, excluding the specified time interval if provided.

Link copied to clipboard
fun setData(interval: TimeInterval, data: Drawable)

Sets the bitmap data for the specified time interval in the time series. The data will only be set if the time interval exists in the time series.

Link copied to clipboard
Link copied to clipboard
fun updateTextures(context: Context, currentIndex: Int, nextIndex: Int)