-
public final class VicoScrollStateHouses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.
-
-
Constructor Summary
Constructors Constructor Description VicoScrollState(Boolean scrollEnabled, Scroll.Absolute initialScroll, Scroll autoScroll, AutoScrollCondition autoScrollCondition, AnimationSpec<Float> autoScrollAnimationSpec)Houses information on a CartesianChart’s scroll value.
-
Method Summary
Modifier and Type Method Description final FloatgetValue()final UnitsetValue(Float value)final FloatgetMaxValue()final UnitsetMaxValue(Float maxValue)final Unitscroll(Scroll scroll)Triggers a scroll. final UnitanimateScroll(Scroll scroll, AnimationSpec<Float> animationSpec)Triggers an animated scroll. -
-
Constructor Detail
-
VicoScrollState
VicoScrollState(Boolean scrollEnabled, Scroll.Absolute initialScroll, Scroll autoScroll, AutoScrollCondition autoScrollCondition, AnimationSpec<Float> autoScrollAnimationSpec)
Houses information on a CartesianChart’s scroll value.- Parameters:
scrollEnabled- whether scroll is enabled.initialScroll- represents the initial scroll value.autoScroll- represents the scroll value or delta for automatic scrolling.autoScrollCondition- defines when an automatic scroll should occur.autoScrollAnimationSpec- the AnimationSpec for automatic scrolling.
-
-
Method Detail
-
getMaxValue
final Float getMaxValue()
-
setMaxValue
final Unit setMaxValue(Float maxValue)
-
animateScroll
final Unit animateScroll(Scroll scroll, AnimationSpec<Float> animationSpec)
Triggers an animated scroll.
-
-
-
-