| package com.airbnb.lottie.model.content; |
| |
| import android.graphics.PointF; |
| |
| import com.airbnb.lottie.LottieDrawable; |
| import com.airbnb.lottie.animation.content.Content; |
| import com.airbnb.lottie.animation.content.EllipseContent; |
| import com.airbnb.lottie.model.animatable.AnimatablePointValue; |
| import com.airbnb.lottie.model.animatable.AnimatableValue; |
| import com.airbnb.lottie.model.layer.BaseLayer; |
| |
| public class CircleShape implements ContentModel { |
| private final String name; |
| private final AnimatableValue<PointF, PointF> position; |
| private final AnimatablePointValue size; |
| private final boolean isReversed; |
| |
| public CircleShape(String name, AnimatableValue<PointF, PointF> position, |
| AnimatablePointValue size, boolean isReversed) { |
| this.name = name; |
| this.position = position; |
| this.size = size; |
| this.isReversed = isReversed; |
| } |
| |
| @Override public Content toContent(LottieDrawable drawable, BaseLayer layer) { |
| return new EllipseContent(drawable, layer, this); |
| } |
| |
| public String getName() { |
| return name; |
| } |
| |
| public AnimatableValue<PointF, PointF> getPosition() { |
| return position; |
| } |
| |
| public AnimatablePointValue getSize() { |
| return size; |
| } |
| |
| public boolean isReversed() { |
| return isReversed; |
| } |
| } |