public class GradientStrokeContent extends BaseStrokeContent
| Constructor and Description |
|---|
GradientStrokeContent(LottieDrawable lottieDrawable,
BaseLayer layer,
GradientStroke stroke) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
Add a color filter to specific content on a specific layer.
|
void |
draw(android.graphics.Canvas canvas,
android.graphics.Matrix parentMatrix,
int parentAlpha) |
java.lang.String |
getName() |
getBounds, onValueChanged, setContentspublic GradientStrokeContent(LottieDrawable lottieDrawable, BaseLayer layer, GradientStroke stroke)
public void draw(android.graphics.Canvas canvas,
android.graphics.Matrix parentMatrix,
int parentAlpha)
draw in interface DrawingContentdraw in class BaseStrokeContentpublic void addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
DrawingContentlayerName - name of the layer where the supplied content name lives, null if color
filter is to be applied to all layerscontentName - name of the specific content that the color filter is to be applied, null
is color filter is to be applied to all content that matches the layer paramcolorFilter - the color filter, null to clear the color filterpublic java.lang.String getName()