Class GradientStrokeContent
- java.lang.Object
-
- com.airbnb.lottie.animation.content.BaseStrokeContent
-
- com.airbnb.lottie.animation.content.GradientStrokeContent
-
- All Implemented Interfaces:
Content,DrawingContent,KeyPathElementContent,BaseKeyframeAnimation.AnimationListener,KeyPathElement
public class GradientStrokeContent extends BaseStrokeContent
-
-
Field Summary
-
Fields inherited from class com.airbnb.lottie.animation.content.BaseStrokeContent
layer
-
-
Constructor Summary
Constructors Constructor Description GradientStrokeContent(LottieDrawable lottieDrawable, BaseLayer layer, GradientStroke stroke)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddValueCallback(T property, LottieValueCallback<T> callback)The overridden method should handle appropriate properties and set value callbacks on their animations.voiddraw(Canvas canvas, Matrix parentMatrix, int parentAlpha)StringgetName()-
Methods inherited from class com.airbnb.lottie.animation.content.BaseStrokeContent
getBounds, onValueChanged, resolveKeyPath, setContents
-
-
-
-
Constructor Detail
-
GradientStrokeContent
public GradientStrokeContent(LottieDrawable lottieDrawable, BaseLayer layer, GradientStroke stroke)
-
-
Method Detail
-
draw
public void draw(Canvas canvas, Matrix parentMatrix, int parentAlpha)
- Specified by:
drawin interfaceDrawingContent- Overrides:
drawin classBaseStrokeContent
-
getName
public String getName()
-
addValueCallback
public <T> void addValueCallback(T property, @Nullable LottieValueCallback<T> callback)Description copied from interface:KeyPathElementThe overridden method should handle appropriate properties and set value callbacks on their animations.- Specified by:
addValueCallbackin interfaceKeyPathElement- Overrides:
addValueCallbackin classBaseStrokeContent
-
-