public ClipPathLayer(PropertyTimeline timeline, ClipPathNode node) { super(timeline, node); pathData = registerAnimatableProperty(node.getPathData()); fillType = node.getFillType(); clipType = node.getClipType(); }
public EllipseLayer(PropertyTimeline timeline, EllipseNode node) { super(timeline, node); centerX = registerAnimatableProperty(node.getCenterX()); centerY = registerAnimatableProperty(node.getCenterY()); radiusX = registerAnimatableProperty(node.getRadiusX()); radiusY = registerAnimatableProperty(node.getRadiusY()); }
public CircleLayer(PropertyTimeline timeline, CircleNode node) { super(timeline, node); centerX = registerAnimatableProperty(node.getCenterX()); centerY = registerAnimatableProperty(node.getCenterY()); radius = registerAnimatableProperty(node.getRadius()); }
public BaseLayer(PropertyTimeline timeline, BaseNode node) { this.timeline = timeline; rotation = registerAnimatableProperty(node.getRotation()); pivotX = registerAnimatableProperty(node.getPivotX()); pivotY = registerAnimatableProperty(node.getPivotY()); scaleX = registerAnimatableProperty(node.getScaleX()); scaleY = registerAnimatableProperty(node.getScaleY()); translateX = registerAnimatableProperty(node.getTranslateX()); translateY = registerAnimatableProperty(node.getTranslateY()); }
public RectangleLayer(PropertyTimeline timeline, RectangleNode node) { super(timeline, node); x = registerAnimatableProperty(node.getX()); y = registerAnimatableProperty(node.getY()); width = registerAnimatableProperty(node.getWidth()); height = registerAnimatableProperty(node.getHeight()); cornerRadiusX = registerAnimatableProperty(node.getCornerRadiusX()); cornerRadiusY = registerAnimatableProperty(node.getCornerRadiusY()); }
public LineLayer(PropertyTimeline timeline, LineNode node) { super(timeline, node); startX = registerAnimatableProperty(node.getStartX()); startY = registerAnimatableProperty(node.getStartY()); endX = registerAnimatableProperty(node.getEndX()); endY = registerAnimatableProperty(node.getEndY()); }
@Override public void onInitPath(Path outPath) { PathData.toPath(pathData.getAnimatedValue(), outPath); } }
public final B pivotY(float initialPivotY) { return replaceFirstAnimation(pivotY, Node.asAnimation(initialPivotY)); }
public PathLayer(PropertyTimeline timeline, PathNode node) { super(timeline, node); pathData = registerAnimatableProperty(node.getPathData()); }
public Builder startX(float initialStartX) { return replaceFirstAnimation(startX, Node.asAnimation(initialStartX)); }
public Builder pathData(PathData initialPathData) { return replaceFirstAnimation(pathData, asAnimation(initialPathData)); }
public Builder pathData(PathData initialPathData) { return replaceFirstAnimation(pathData, asAnimation(initialPathData)); }
public Builder centerY(float initialCenterY) { return replaceFirstAnimation(centerY, Node.asAnimation(initialCenterY)); }
public Builder centerY(float initialCenterY) { return replaceFirstAnimation(centerY, asAnimation(initialCenterY)); }
/** * Initializes a {@link Path} from the provided {@link PathData} object. * * @param pathData The {@link PathData} object to convert. * @param outPath The {@link Path} to write to. */ public static void toPath(PathData pathData, Path outPath) { PathDataUtils.toPath(pathData, outPath); }
/** Starts the animation. */ @Override public void start() { animator.start(); }
public final B translateX(float initialTranslateX) { return replaceFirstAnimation(translateX, Node.asAnimation(initialTranslateX)); }
public final B rotation(float initialRotation) { return replaceFirstAnimation(rotation, Node.asAnimation(initialRotation)); }
public final B scaleX(float initialScaleX) { return replaceFirstAnimation(scaleX, Node.asAnimation(initialScaleX)); }