Package com.airbnb.lottie.model.layer
Class CompositionLayer
- java.lang.Object
-
- com.airbnb.lottie.model.layer.BaseLayer
-
- com.airbnb.lottie.model.layer.CompositionLayer
-
- All Implemented Interfaces:
Content,DrawingContent,BaseKeyframeAnimation.AnimationListener,KeyPathElement
public class CompositionLayer extends BaseLayer
-
-
Constructor Summary
Constructors Constructor Description CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<Layer> layerModels, LottieComposition composition)
-
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.voidgetBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)booleanhasMasks()booleanhasMatte()protected voidresolveChildKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath)voidsetClipToCompositionBounds(boolean clipToCompositionBounds)voidsetOutlineMasksAndMattes(boolean outline)voidsetProgress(float progress)-
Methods inherited from class com.airbnb.lottie.model.layer.BaseLayer
addAnimation, draw, getBlurEffect, getBlurMaskFilter, getDropShadowEffect, getName, onValueChanged, removeAnimation, resolveKeyPath, setContents
-
-
-
-
Constructor Detail
-
CompositionLayer
public CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<Layer> layerModels, LottieComposition composition)
-
-
Method Detail
-
setClipToCompositionBounds
public void setClipToCompositionBounds(boolean clipToCompositionBounds)
-
setOutlineMasksAndMattes
public void setOutlineMasksAndMattes(boolean outline)
-
getBounds
public void getBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)
- Specified by:
getBoundsin interfaceDrawingContent- Overrides:
getBoundsin classBaseLayer
-
setProgress
public void setProgress(@FloatRange(from=0.0,to=1.0) float progress)
-
hasMasks
public boolean hasMasks()
-
hasMatte
public boolean hasMatte()
-
resolveChildKeyPath
protected void resolveChildKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath)
-
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 classBaseLayer
-
-