62 lines
2.0 KiB
Java
62 lines
2.0 KiB
Java
|
package com.airbnb.lottie.model.content;
|
||
|
|
||
|
import android.graphics.PointF;
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import com.airbnb.lottie.LottieDrawable;
|
||
|
import com.airbnb.lottie.animation.content.Content;
|
||
|
import com.airbnb.lottie.animation.content.RectangleContent;
|
||
|
import com.airbnb.lottie.model.animatable.AnimatableFloatValue;
|
||
|
import com.airbnb.lottie.model.animatable.AnimatableValue;
|
||
|
import com.airbnb.lottie.model.layer.BaseLayer;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class RectangleShape implements ContentModel {
|
||
|
private final AnimatableFloatValue cornerRadius;
|
||
|
private final boolean hidden;
|
||
|
private final String name;
|
||
|
private final AnimatableValue<PointF, PointF> position;
|
||
|
private final AnimatableValue<PointF, PointF> size;
|
||
|
|
||
|
public RectangleShape(String str, AnimatableValue<PointF, PointF> animatableValue, AnimatableValue<PointF, PointF> animatableValue2, AnimatableFloatValue animatableFloatValue, boolean z) {
|
||
|
this.name = str;
|
||
|
this.position = animatableValue;
|
||
|
this.size = animatableValue2;
|
||
|
this.cornerRadius = animatableFloatValue;
|
||
|
this.hidden = z;
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.model.content.ContentModel
|
||
|
public Content toContent(LottieDrawable lottieDrawable, BaseLayer baseLayer) {
|
||
|
return new RectangleContent(lottieDrawable, baseLayer, this);
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder sb = new StringBuilder("RectangleShape{position=");
|
||
|
sb.append(this.position);
|
||
|
sb.append(", size=");
|
||
|
sb.append(this.size);
|
||
|
sb.append(UrlTreeKt.componentParamSuffixChar);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public boolean isHidden() {
|
||
|
return this.hidden;
|
||
|
}
|
||
|
|
||
|
public AnimatableValue<PointF, PointF> getSize() {
|
||
|
return this.size;
|
||
|
}
|
||
|
|
||
|
public AnimatableValue<PointF, PointF> getPosition() {
|
||
|
return this.position;
|
||
|
}
|
||
|
|
||
|
public String getName() {
|
||
|
return this.name;
|
||
|
}
|
||
|
|
||
|
public AnimatableFloatValue getCornerRadius() {
|
||
|
return this.cornerRadius;
|
||
|
}
|
||
|
}
|