ChartScrollSpec
class ChartScrollSpec<in Model : ChartEntryModel>(val isScrollEnabled: Boolean = true, val initialScroll: InitialScroll = InitialScroll.Start, val autoScrollCondition: AutoScrollCondition<Model> = AutoScrollCondition.Never, val autoScrollInterpolator: TimeInterpolator = AccelerateDecelerateInterpolator(), val autoScrollDuration: Long = Animation.DIFF_DURATION.toLong())
Houses scrolling-related settings for charts.
Constructors
Link copied to clipboard
constructor(isScrollEnabled: Boolean = true, initialScroll: InitialScroll = InitialScroll.Start, autoScrollCondition: AutoScrollCondition<Model> = AutoScrollCondition.Never, autoScrollInterpolator: TimeInterpolator = AccelerateDecelerateInterpolator(), autoScrollDuration: Long = Animation.DIFF_DURATION.toLong())
Properties
Link copied to clipboard
defines when an automatic scroll should be performed.
Link copied to clipboard
the animation duration for automatic scrolling.
Link copied to clipboard
the TimeInterpolator to use for automatic scrolling.
Link copied to clipboard
represents the chart’s initial scroll position.
Link copied to clipboard
whether horizontal scrolling is enabled.
Functions
Link copied to clipboard
fun <Model : ChartEntryModel> ChartScrollSpec<Model>.copy(isScrollEnabled: Boolean = this.isScrollEnabled, initialScroll: InitialScroll = this.initialScroll, autoScrollCondition: AutoScrollCondition<Model> = this.autoScrollCondition, autoScrollInterpolator: TimeInterpolator = this.autoScrollInterpolator, autoScrollDuration: Long = this.autoScrollDuration): ChartScrollSpec<Model>
Copies this ChartScrollSpec, changing select values.
Link copied to clipboard
Performs an automatic scroll.