mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
56 lines
1.9 KiB
Java
56 lines
1.9 KiB
Java
package com.airbnb.lottie.model.content;
|
|
|
|
import android.graphics.PointF;
|
|
import com.airbnb.lottie.LottieComposition;
|
|
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: classes2.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 AnimatableFloatValue getCornerRadius() {
|
|
return this.cornerRadius;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public AnimatableValue<PointF, PointF> getPosition() {
|
|
return this.position;
|
|
}
|
|
|
|
public AnimatableValue<PointF, PointF> getSize() {
|
|
return this.size;
|
|
}
|
|
|
|
public boolean isHidden() {
|
|
return this.hidden;
|
|
}
|
|
|
|
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, LottieComposition lottieComposition, BaseLayer baseLayer) {
|
|
return new RectangleContent(lottieDrawable, baseLayer, this);
|
|
}
|
|
|
|
public String toString() {
|
|
return "RectangleShape{position=" + this.position + ", size=" + this.size + '}';
|
|
}
|
|
}
|