public class

ViewTimeCycle.CustomSet

extends ViewTimeCycle

 java.lang.Object

androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet

androidx.constraintlayout.motion.utils.ViewTimeCycle

↳androidx.constraintlayout.motion.utils.ViewTimeCycle.CustomSet

Summary

Fields
from TimeCycleSplineSetCURVE_OFFSET, CURVE_PERIOD, CURVE_VALUE, mCache[], mContinue, mCount, mCurveFit, mLastCycle, mLastTime, mTimePoints[], mType, mValues[][], mWaveShape, sVal2PI
Constructors
publicCustomSet(java.lang.String attribute, <any> attrList)

Methods
public voidsetPoint(int position, ConstraintAttribute value, float period, int shape, float offset)

set the keyTimePoint

public voidsetPoint(int position, float value, float period, int shape, float offset)

public booleansetProperty(View view, float t, long time, KeyCache cache)

Set the property of the view given the position the current time

public voidsetup(int curveType)

Setup the curve

from ViewTimeCycleget, makeCustomSpline, makeSpline
from TimeCycleSplineSetcalcWave, getCurveFit, setStartTime, setType, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public CustomSet(java.lang.String attribute, <any> attrList)

Methods

public void setup(int curveType)

Setup the curve

Parameters:

curveType:

public void setPoint(int position, float value, float period, int shape, float offset)

Parameters:

position:
value:
period:
shape:
offset:

public void setPoint(int position, ConstraintAttribute value, float period, int shape, float offset)

set the keyTimePoint

Parameters:

position:
value:
period:
shape:
offset:

public boolean setProperty(View view, float t, long time, KeyCache cache)

Set the property of the view given the position the current time

Parameters:

view: the view to set the property of
t: the position on the curve
time: the current time
cache: the cache used to keep the previous position

Returns:

true if it will need repaint