/** * Moves the given animation to the top of the sandwich. */ protected void moveToTop(AbstractAnimation anim) { AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); sandwich.shouldUpdate = true; if (anim.higherAnimation == null) { return; } if (anim.lowerAnimation == null) { sandwich.lowestAnimation = anim.higherAnimation; } else { anim.lowerAnimation.higherAnimation = anim.higherAnimation; } anim.higherAnimation.lowerAnimation = anim.lowerAnimation; if (sandwich.animation != null) { sandwich.animation.higherAnimation = anim; } anim.lowerAnimation = sandwich.animation; anim.higherAnimation = null; sandwich.animation = anim; }
/** * Moves the given animation to the top of the sandwich. */ protected void moveToTop(AbstractAnimation anim) { AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); sandwich.shouldUpdate = true; if (anim.higherAnimation == null) { return; } if (anim.lowerAnimation == null) { sandwich.lowestAnimation = anim.higherAnimation; } else { anim.lowerAnimation.higherAnimation = anim.higherAnimation; } anim.higherAnimation.lowerAnimation = anim.lowerAnimation; if (sandwich.animation != null) { sandwich.animation.higherAnimation = anim; } anim.lowerAnimation = sandwich.animation; anim.higherAnimation = null; sandwich.animation = anim; }
/** * Moves the given animation to the top of the sandwich. */ protected void moveToTop(AbstractAnimation anim) { AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); sandwich.shouldUpdate = true; if (anim.higherAnimation == null) { return; } if (anim.lowerAnimation == null) { sandwich.lowestAnimation = anim.higherAnimation; } else { anim.lowerAnimation.higherAnimation = anim.higherAnimation; } anim.higherAnimation.lowerAnimation = anim.lowerAnimation; if (sandwich.animation != null) { sandwich.animation.higherAnimation = anim; } anim.lowerAnimation = sandwich.animation; anim.higherAnimation = null; sandwich.animation = anim; }
/** * Moves the given animation to the bottom of the sandwich. */ protected void moveToBottom(AbstractAnimation anim) { if (anim.lowerAnimation == null) { return; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); AbstractAnimation nextLower = anim.lowerAnimation; nextLower.markDirty(); anim.lowerAnimation.higherAnimation = anim.higherAnimation; if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = anim.lowerAnimation; } else { sandwich.animation = nextLower; sandwich.shouldUpdate = true; } sandwich.lowestAnimation.lowerAnimation = anim; anim.higherAnimation = sandwich.lowestAnimation; anim.lowerAnimation = null; sandwich.lowestAnimation = anim; if (sandwich.animation.isDirty) { sandwich.shouldUpdate = true; } }
/** * Moves the given animation to the bottom of the sandwich. */ protected void moveToBottom(AbstractAnimation anim) { if (anim.lowerAnimation == null) { return; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); AbstractAnimation nextLower = anim.lowerAnimation; nextLower.markDirty(); anim.lowerAnimation.higherAnimation = anim.higherAnimation; if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = anim.lowerAnimation; } else { sandwich.animation = nextLower; sandwich.shouldUpdate = true; } sandwich.lowestAnimation.lowerAnimation = anim; anim.higherAnimation = sandwich.lowestAnimation; anim.lowerAnimation = null; sandwich.lowestAnimation = anim; if (sandwich.animation.isDirty) { sandwich.shouldUpdate = true; } }
/** * Moves the given animation to the bottom of the sandwich. */ protected void moveToBottom(AbstractAnimation anim) { if (anim.lowerAnimation == null) { return; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); AbstractAnimation nextLower = anim.lowerAnimation; nextLower.markDirty(); anim.lowerAnimation.higherAnimation = anim.higherAnimation; if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = anim.lowerAnimation; } else { sandwich.animation = nextLower; sandwich.shouldUpdate = true; } sandwich.lowestAnimation.lowerAnimation = anim; anim.higherAnimation = sandwich.lowestAnimation; anim.lowerAnimation = null; sandwich.lowestAnimation = anim; if (sandwich.animation.isDirty) { sandwich.shouldUpdate = true; } }
AnimationInfo animInfo = getAnimationInfo(anim); animInfo.type = type; animInfo.attributeNamespaceURI = ns;
AnimationInfo animInfo = getAnimationInfo(anim); animInfo.type = type; animInfo.attributeNamespaceURI = ns;
AnimationInfo animInfo = getAnimationInfo(anim); animInfo.type = type; animInfo.attributeNamespaceURI = ns;
AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI,
/** * Removes an animation from the document. */ public void removeAnimation(AbstractAnimation anim) { // org.apache.batik.anim.timing.Trace.enter(this, "removeAnimation", new Object[] { anim } ); try { timedDocumentRoot.removeChild(anim.getTimedElement()); AbstractAnimation nextHigher = anim.higherAnimation; if (nextHigher != null) { nextHigher.markDirty(); } moveToBottom(anim); if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = null; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); if (sandwich.animation == anim) { sandwich.animation = null; sandwich.lowestAnimation = null; sandwich.shouldUpdate = true; } // } finally { org.apache.batik.anim.timing.Trace.exit(); } }
AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI,
/** * Removes an animation from the document. */ public void removeAnimation(AbstractAnimation anim) { // org.apache.batik.anim.timing.Trace.enter(this, "removeAnimation", new Object[] { anim } ); try { timedDocumentRoot.removeChild(anim.getTimedElement()); AbstractAnimation nextHigher = anim.higherAnimation; if (nextHigher != null) { nextHigher.markDirty(); } moveToBottom(anim); if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = null; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); if (sandwich.animation == anim) { sandwich.animation = null; sandwich.lowestAnimation = null; sandwich.shouldUpdate = true; } // } finally { org.apache.batik.anim.timing.Trace.exit(); } }
AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI,
/** * Removes an animation from the document. */ public void removeAnimation(AbstractAnimation anim) { // org.apache.batik.anim.timing.Trace.enter(this, "removeAnimation", new Object[] { anim } ); try { timedDocumentRoot.removeChild(anim.getTimedElement()); AbstractAnimation nextHigher = anim.higherAnimation; if (nextHigher != null) { nextHigher.markDirty(); } moveToBottom(anim); if (anim.higherAnimation != null) { anim.higherAnimation.lowerAnimation = null; } AnimationInfo animInfo = getAnimationInfo(anim); Sandwich sandwich = getSandwich(animInfo.target, animInfo.type, animInfo.attributeNamespaceURI, animInfo.attributeLocalName); if (sandwich.animation == anim) { sandwich.animation = null; sandwich.lowestAnimation = null; sandwich.shouldUpdate = true; } // } finally { org.apache.batik.anim.timing.Trace.exit(); } }