/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }
/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }
/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }
/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }
/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }
/** * Updates a 'other' animation value in this target. */ public void updateOtherValue(String type, AnimatableValue val) { if (type.equals("motion")) { if (motionTransform == null) { motionTransform = new AffineTransform(); } if (val == null) { motionTransform.setToIdentity(); } else { AnimatableMotionPointValue p = (AnimatableMotionPointValue) val; motionTransform.setToTranslation(p.getX(), p.getY()); motionTransform.rotate(p.getAngle()); } SVGOMDocument d = (SVGOMDocument) ownerDocument; d.getAnimatedAttributeListener().otherAnimationChanged(this, type); } else { super.updateOtherValue(type, val); } } }