Package com.airbnb.lottie.model.content
Class GradientStroke
- java.lang.Object
-
- com.airbnb.lottie.model.content.GradientStroke
-
- All Implemented Interfaces:
ContentModel
public class GradientStroke extends Object implements ContentModel
-
-
Constructor Summary
Constructors Constructor Description GradientStroke(String name, GradientType gradientType, AnimatableGradientColorValue gradientColor, AnimatableIntegerValue opacity, AnimatablePointValue startPoint, AnimatablePointValue endPoint, AnimatableFloatValue width, ShapeStroke.LineCapType capType, ShapeStroke.LineJoinType joinType, float miterLimit, List<AnimatableFloatValue> lineDashPattern, AnimatableFloatValue dashOffset, boolean hidden)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeStroke.LineCapTypegetCapType()AnimatableFloatValuegetDashOffset()AnimatablePointValuegetEndPoint()AnimatableGradientColorValuegetGradientColor()GradientTypegetGradientType()ShapeStroke.LineJoinTypegetJoinType()List<AnimatableFloatValue>getLineDashPattern()floatgetMiterLimit()StringgetName()AnimatableIntegerValuegetOpacity()AnimatablePointValuegetStartPoint()AnimatableFloatValuegetWidth()booleanisHidden()ContenttoContent(LottieDrawable drawable, BaseLayer layer)
-
-
-
Constructor Detail
-
GradientStroke
public GradientStroke(String name, GradientType gradientType, AnimatableGradientColorValue gradientColor, AnimatableIntegerValue opacity, AnimatablePointValue startPoint, AnimatablePointValue endPoint, AnimatableFloatValue width, ShapeStroke.LineCapType capType, ShapeStroke.LineJoinType joinType, float miterLimit, List<AnimatableFloatValue> lineDashPattern, @Nullable AnimatableFloatValue dashOffset, boolean hidden)
-
-
Method Detail
-
getName
public String getName()
-
getGradientType
public GradientType getGradientType()
-
getGradientColor
public AnimatableGradientColorValue getGradientColor()
-
getOpacity
public AnimatableIntegerValue getOpacity()
-
getStartPoint
public AnimatablePointValue getStartPoint()
-
getEndPoint
public AnimatablePointValue getEndPoint()
-
getWidth
public AnimatableFloatValue getWidth()
-
getCapType
public ShapeStroke.LineCapType getCapType()
-
getJoinType
public ShapeStroke.LineJoinType getJoinType()
-
getLineDashPattern
public List<AnimatableFloatValue> getLineDashPattern()
-
getDashOffset
@Nullable public AnimatableFloatValue getDashOffset()
-
getMiterLimit
public float getMiterLimit()
-
isHidden
public boolean isHidden()
-
toContent
public Content toContent(LottieDrawable drawable, BaseLayer layer)
- Specified by:
toContentin interfaceContentModel
-
-