ViewOscillator.PathRotateSet


public class ViewOscillator.PathRotateSet extends ViewOscillator


Summary

Public constructors

Public methods

void
setPathRotate(View view, float t, double dx, double dy)

use to modify the rotation relative to the current path

void
setProperty(View view, float t)

Set the property of that view

Inherited methods

From androidx.constraintlayout.core.motion.utils.KeyCycleOscillator
float
get(float t)
CurveFit
float
getSlope(float position)
static KeyCycleOscillator
void
setCustom(Object custom)
void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value
)

sets a oscillator wave point

void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value,
    Object custom
)

sets a oscillator wave point

void
setProperty(MotionWidget widget, float t)
void
void
setup(float pathLength)
String
boolean
From androidx.constraintlayout.motion.utils.ViewOscillator
static ViewOscillator

Create a spline that manipulates a specific property of a view

Public constructors

PathRotateSet

Added in 2.2.0
public PathRotateSet()

Public methods

setPathRotate

Added in 2.2.0
public void setPathRotate(View view, float t, double dx, double dy)

use to modify the rotation relative to the current path

Parameters
View view

the view to modify

float t

the point in time to manipulate

double dx

of the path

double dy

of the path

setProperty

Added in 2.2.0
public void setProperty(View view, float t)

Set the property of that view

Parameters
View view
float t